aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-05-08 14:32:54 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-05-11 08:43:35 +0200
commitc9f0fe6b8b8b523c5759189a1422c3b2d02c06eb (patch)
treeb6b7f73c8f2a923dc2e80b1b4926cda9ed879ca1 /tests
parent71fc3f3fce4791e75f6769de5cb51fb1240e64db (diff)
Avoid grabbing non-exposed window in qquickimage autotest
It uncovers a valid issue (that seems to affect Vulkan only, which is pretty odd), but that test is not the right place to exercise this. Just do like every other case in the same test does: show the window. The non-exposed window grab issue will be handled separately. Change-Id: Id2c1ff46251adf058dd26a30dedd30ecd27e4aa6 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/quick/qquickimage/tst_qquickimage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickimage/tst_qquickimage.cpp b/tests/auto/quick/qquickimage/tst_qquickimage.cpp
index 4dd8939d39..4c9381d296 100644
--- a/tests/auto/quick/qquickimage/tst_qquickimage.cpp
+++ b/tests/auto/quick/qquickimage/tst_qquickimage.cpp
@@ -1164,7 +1164,8 @@ void tst_qquickimage::hugeImages()
QQuickView view;
view.setSource(testFileUrl("hugeImages.qml"));
view.setGeometry(0, 0, 200, 200);
- view.create();
+ view.show();
+ QVERIFY(QTest::qWaitForWindowExposed(&view));
QImage contents = view.grabWindow();