summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeimageprovider
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-07-08 05:33:37 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-07-08 05:35:49 (GMT)
commita2ee0cfd799f563f292e6b40ca460e05819fd0fd (patch)
tree6e5ea43a576bf3e3fae5ac5ee4d9b08942ecdd80 /tests/auto/declarative/qdeclarativeimageprovider
parent33b664eabe5d9621d71e5bf3bfcc46ea385a399c (diff)
downloadQt-a2ee0cfd799f563f292e6b40ca460e05819fd0fd.zip
Qt-a2ee0cfd799f563f292e6b40ca460e05819fd0fd.tar.gz
Qt-a2ee0cfd799f563f292e6b40ca460e05819fd0fd.tar.bz2
Don't show warning for attempts to load pixmaps asynchronously
(should be handled by image providers, elements shouldn't have to know about the capabilities)
Diffstat (limited to 'tests/auto/declarative/qdeclarativeimageprovider')
-rw-r--r--tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp b/tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp
index 9d62f22..e0b46f0 100644
--- a/tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp
+++ b/tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp
@@ -256,9 +256,7 @@ void tst_qdeclarativeimageprovider::requestPixmap_async()
engine.addImageProvider("test", provider);
QVERIFY(engine.imageProvider("test") != 0);
- QTest::ignoreMessage(QtWarningMsg,
- "Pixmaps must be loaded synchronously, ignoring asynchronous property for Image with source: \"image://test/pixmap-async-test.png\"");
-
+ // pixmaps are loaded synchronously regardless of 'asynchronous' value
QString componentStr = "import Qt 4.7\nImage { asynchronous: true; source: \"image://test/pixmap-async-test.png\" }";
QDeclarativeComponent component(&engine);
component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));