diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2012-02-08 11:54:11 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-08 04:38:16 +0100 |
commit | e241932c974f4b5e36052e4a37e718d9ec3c227b (patch) | |
tree | 741c280363e085a2477a4aae8ddd43f0897d2995 /tests/auto/unit/qvideowidget | |
parent | 6de7c3104006c3aa919a697bc94ec99a3f0c4140 (diff) |
Remove some more QTest::qWait(10) calls.
Since it seems to have changed slightly recently. Just use
QTRY_COMPARE instead.
Change-Id: I802c2e26acf5418bb5904fadd2a978a44fd9eb01
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Diffstat (limited to 'tests/auto/unit/qvideowidget')
-rw-r--r-- | tests/auto/unit/qvideowidget/tst_qvideowidget.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp b/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp index 5d08a5788..59816b4cb 100644 --- a/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp +++ b/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp @@ -1554,10 +1554,7 @@ void tst_QVideoWidget::paintRendererControl() QCOMPARE(surface->isActive(), true); QCOMPARE(surface->isReady(), false); - //wait up to 2 seconds for the frame to be presented - for (int i=0; i<200 && !surface->isReady(); i++) - QTest::qWait(10); - + QTRY_COMPARE(surface->isReady(), true); QCOMPARE(surface->isActive(), true); QCOMPARE(surface->isReady(), true); } |