From 9d0ccbfbbfc939df96e2bed24333cb891d844f92 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Thu, 12 Jan 2012 11:21:42 +1000 Subject: [PATCH] Stabilize test. There appears to be an issue with showing before setting the source, if qWaitForWindowShown is not used. The show() is not required for this test, so remove it. Change-Id: I423a9572c8ee0dde9cbf9bc8fbf98aede97a79a7 Reviewed-by: Andrew den Exter --- tests/auto/qtquick2/qquickborderimage/tst_qquickborderimage.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/auto/qtquick2/qquickborderimage/tst_qquickborderimage.cpp b/tests/auto/qtquick2/qquickborderimage/tst_qquickborderimage.cpp index c48830c..24442a9 100644 --- a/tests/auto/qtquick2/qquickborderimage/tst_qquickborderimage.cpp +++ b/tests/auto/qtquick2/qquickborderimage/tst_qquickborderimage.cpp @@ -220,12 +220,9 @@ void tst_qquickborderimage::smooth() void tst_qquickborderimage::mirror() { QQuickView *canvas = new QQuickView; - canvas->show(); - canvas->setSource(testFileUrl("mirror.qml")); QQuickBorderImage *image = qobject_cast(canvas->rootObject()); QVERIFY(image != 0); - canvas->show(); QImage screenshot = canvas->grabFrameBuffer(); -- 2.7.4