Fixed a testing bug on windows platform.
authorbigbearzhu <jun.5.zhu@nokia.com>
Wed, 27 Jun 2012 05:18:31 +0000 (15:18 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 29 Jun 2012 04:00:21 +0000 (06:00 +0200)
Change-Id: Iaf11864e6929345b105cdd185b4bb01b24961406
Reviewed-by: Ling Hu <ling.hu@nokia.com>
tests/auto/unit/qvideowidget/tst_qvideowidget.cpp

index 59816b4..3c7db50 100644 (file)
@@ -352,6 +352,9 @@ void tst_QVideoWidget::nullObject()
 
     QVERIFY(widget.sizeHint().isEmpty());
 
+    widget.show();
+    QTest::qWaitForWindowShown(&widget);
+
     widget.setFullScreen(true);
     QTest::qWaitForWindowShown(&widget);
     QCOMPARE(widget.isFullScreen(), true);
@@ -437,6 +440,9 @@ void tst_QVideoWidget::nullService()
 
     QVERIFY(widget.sizeHint().isEmpty());
 
+    widget.show();
+    QTest::qWaitForWindowShown(&widget);
+
     widget.setFullScreen(true);
     QTest::qWaitForWindowShown(&widget);
     QCOMPARE(widget.isFullScreen(), true);