Fix tst_qquickview for full screen platforms
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>
Wed, 17 Jul 2013 20:44:31 +0000 (17:44 -0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 18 Jul 2013 19:37:32 +0000 (21:37 +0200)
Some test cases rely on the fact that show() is not fullscreen, which may not
be true for some platforms. Explicitly make use of showNormal() to avoid
full-screen show on these platforms.

Change-Id: I0787fb62b8e37a73974f87857de200485d7ba6da
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
tests/auto/quick/qquickview/tst_qquickview.cpp

index e2e20a6..a4ed126 100644 (file)
@@ -80,7 +80,7 @@ void tst_QQuickView::resizemodeitem()
     QVERIFY(item);
     window.show();
 
-    view->show();
+    view->showNormal();
 
     // initial size from root object
     QCOMPARE(item->width(), 200.0);
@@ -126,7 +126,7 @@ void tst_QQuickView::resizemodeitem()
     QVERIFY(item);
     window.show();
 
-    view->show();
+    view->showNormal();
 
     // initial size for root object
     QCOMPARE(item->width(), 200.0);
@@ -173,7 +173,7 @@ void tst_QQuickView::resizemodeitem()
     QVERIFY(item);
     window.show();
 
-    view->show();
+    view->showNormal();
     QTest::qWait(50);
 
     // initial size from root object