diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-02-25 12:57:45 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-25 17:08:02 +0100 |
commit | 360a51efbea5c236f0d2ac531e65d7614b95ab3b (patch) | |
tree | bbade2eeed51a24a574d721d6432ca6d21254706 | |
parent | f7a8a41e48fda4d7cb395e435fad292770d9c467 (diff) |
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 <jani.heikkinen@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
-rw-r--r-- | tests/auto/quick/qquickpathview/tst_qquickpathview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<QQuickView> 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<QQuickPathView*>("view"); QVERIFY(pathview != 0); |