Fixed a testing bug on windows platform.
Change-Id: Iaf11864e6929345b105cdd185b4bb01b24961406 Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
@@ -352,6 +352,9 @@ void tst_QVideoWidget::nullObject()
|
|||||||
|
|
||||||
QVERIFY(widget.sizeHint().isEmpty());
|
QVERIFY(widget.sizeHint().isEmpty());
|
||||||
|
|
||||||
|
widget.show();
|
||||||
|
QTest::qWaitForWindowShown(&widget);
|
||||||
|
|
||||||
widget.setFullScreen(true);
|
widget.setFullScreen(true);
|
||||||
QTest::qWaitForWindowShown(&widget);
|
QTest::qWaitForWindowShown(&widget);
|
||||||
QCOMPARE(widget.isFullScreen(), true);
|
QCOMPARE(widget.isFullScreen(), true);
|
||||||
@@ -437,6 +440,9 @@ void tst_QVideoWidget::nullService()
|
|||||||
|
|
||||||
QVERIFY(widget.sizeHint().isEmpty());
|
QVERIFY(widget.sizeHint().isEmpty());
|
||||||
|
|
||||||
|
widget.show();
|
||||||
|
QTest::qWaitForWindowShown(&widget);
|
||||||
|
|
||||||
widget.setFullScreen(true);
|
widget.setFullScreen(true);
|
||||||
QTest::qWaitForWindowShown(&widget);
|
QTest::qWaitForWindowShown(&widget);
|
||||||
QCOMPARE(widget.isFullScreen(), true);
|
QCOMPARE(widget.isFullScreen(), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user