From: Rafael Roquetto Date: Wed, 17 Jul 2013 20:44:31 +0000 (-0300) Subject: Fix tst_qquickview for full screen platforms X-Git-Tag: upstream/5.2.1~677^2~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a95f2998dbd08494bba136a060cc8d454b5f7cc8;p=platform%2Fupstream%2Fqtdeclarative.git Fix tst_qquickview for full screen platforms 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 --- diff --git a/tests/auto/quick/qquickview/tst_qquickview.cpp b/tests/auto/quick/qquickview/tst_qquickview.cpp index e2e20a6..a4ed126 100644 --- a/tests/auto/quick/qquickview/tst_qquickview.cpp +++ b/tests/auto/quick/qquickview/tst_qquickview.cpp @@ -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