diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2013-03-06 18:47:17 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-11 22:16:36 +0100 |
commit | 8325f2dead9b5257113d260ab673d51f8891f097 (patch) | |
tree | 2d5e14247d80923328545bd380787e45cb7dbd2e /tests/auto/quick/qquickimage | |
parent | 457abe24baa709c55cf6d1951c7fb13400f0202e (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/qquickimage')
-rw-r--r-- | tests/auto/quick/qquickimage/tst_qquickimage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |