From 8325f2dead9b5257113d260ab673d51f8891f097 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 6 Mar 2013 18:47:17 +0100 Subject: 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 Reviewed-by: Friedemann Kleint --- tests/auto/quick/qquickimage/tst_qquickimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/quick/qquickimage') diff --git a/tests/auto/quick/qquickimage/tst_qquickimage.cpp b/tests/auto/quick/qquickimage/tst_qquickimage.cpp index 51ac5c640a..531bf1202e 100644 --- a/tests/auto/quick/qquickimage/tst_qquickimage.cpp +++ b/tests/auto/quick/qquickimage/tst_qquickimage.cpp @@ -701,7 +701,7 @@ void tst_qquickimage::imageCrash_QTBUG_22125() } // shouldn't crash when deleting cancelled QQmlPixmapReplys. - QTest::qWait(520); // Delay mode delays for 500 ms. + server.sendDelayedItem(); QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete); QCoreApplication::processEvents(); } -- cgit v1.2.3