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/qquickborderimage | |
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/qquickborderimage')
-rw-r--r-- | tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp b/tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp index 9ba0cf189d..b795d23da4 100644 --- a/tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp +++ b/tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp @@ -451,6 +451,8 @@ void tst_qquickborderimage::statusChanges() QSignalSpy spy(obj, SIGNAL(statusChanged(QQuickImageBase::Status))); QVERIFY(obj != 0); obj->setSource(source); + if (remote) + server->sendDelayedItem(); QTRY_VERIFY(obj->status() == finalStatus); QCOMPARE(spy.count(), emissions); |