aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickpixmapcache
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-03-06 18:47:17 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-11 22:16:36 +0100
commit8325f2dead9b5257113d260ab673d51f8891f097 (patch)
tree2d5e14247d80923328545bd380787e45cb7dbd2e /tests/auto/quick/qquickpixmapcache
parent457abe24baa709c55cf6d1951c7fb13400f0202e (diff)
Improve timer dependent tests.
tst_QQuickLoader::loadedSignal depended on sharing the engine with simultaneousSyncAsync and that function being run before it. After each test run call clearComponentCache() as that is important for caching of the network tests. The test server would send the item after 500ms. Sometimes the CI would be faster or slower. Instead of relying on timing, simply call a function when the reply should be sent. Change-Id: Ifb0447041197e1cba103570597a62a2510d31aab Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'tests/auto/quick/qquickpixmapcache')
-rw-r--r--tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp b/tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp
index f52d5281a2..75bd468aef 100644
--- a/tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp
+++ b/tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp
@@ -419,6 +419,7 @@ void tst_qquickpixmapcache::lockingCrash()
p->clear();
QVERIFY(p->isNull());
delete p;
+ server.sendDelayedItem();
}
}