summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit
diff options
context:
space:
mode:
authorbigbearzhu <jun.5.zhu@nokia.com>2012-06-27 15:18:31 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-29 06:00:21 +0200
commitf2309fa9278732712d80a4cdc771fbc790e0cf5b (patch)
tree4f2e1e5235a16548e90b77819d6bc88c85368714 /tests/auto/unit
parenteb5b216ac42da2dfb2479ad0f1b140665e3268a3 (diff)
Fixed a testing bug on windows platform.
Change-Id: Iaf11864e6929345b105cdd185b4bb01b24961406 Reviewed-by: Ling Hu <ling.hu@nokia.com>
Diffstat (limited to 'tests/auto/unit')
-rw-r--r--tests/auto/unit/qvideowidget/tst_qvideowidget.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp b/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp
index 59816b4cb..3c7db505d 100644
--- a/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp
+++ b/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp
@@ -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);