From 360a51efbea5c236f0d2ac531e65d7614b95ab3b Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 25 Feb 2014 12:57:45 +0100 Subject: tst_qquickpathview: show window before flicking It's uncertain whether this caused any actual CI failures, but other tests show the window first, and this one tests interactive functionality so it makes sense that it should be visible. Change-Id: I92c26ce596f556765917409ca4e9037bdaccfa23 Reviewed-by: Jani Heikkinen Reviewed-by: Frederik Gladhorn --- tests/auto/quick/qquickpathview/tst_qquickpathview.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp b/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp index 2c868231c8..7235faaff7 100644 --- a/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp +++ b/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp @@ -1856,6 +1856,11 @@ void tst_QQuickPathView::snapToItem() QScopedPointer window(createView()); QQuickViewTestUtil::moveMouseAway(window.data()); window->setSource(testFileUrl("panels.qml")); + window->show(); + window->requestActivate(); + QVERIFY(QTest::qWaitForWindowActive(window.data())); + QCOMPARE(window.data(), qGuiApp->focusWindow()); + QQuickPathView *pathview = window->rootObject()->findChild("view"); QVERIFY(pathview != 0); -- cgit v1.2.3