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>
This commit is contained in:
Michael Goddard
2012-02-08 11:54:11 +10:00
committed by Qt by Nokia
parent 6de7c31040
commit e241932c97
3 changed files with 6 additions and 20 deletions

View File

@@ -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);
}