aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-21 09:44:13 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-21 14:22:00 +0000
commit17df1dd90e3f3afc653cf29fcd2c1a568c1d626a (patch)
tree0d721c54aad6b8166b73c14d97a6e48ee55d512e /tests
parent3ef2a63a9d39ce6fd121e74a7878310eb3056083 (diff)
tst_popup: add missing window->requestActivate() calls
The tests are waiting for the window to become active, but not actually requesting it to be activated. Change-Id: I9f8cd6a09b0d89bba8f9adb9b5efa5bb59d7c185 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/popup/tst_popup.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/popup/tst_popup.cpp b/tests/auto/popup/tst_popup.cpp
index ca52272e..da772384 100644
--- a/tests/auto/popup/tst_popup.cpp
+++ b/tests/auto/popup/tst_popup.cpp
@@ -63,6 +63,7 @@ void tst_popup::visible()
QQuickApplicationWindow *window = helper.window;
window->show();
+ window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QQuickPopup *popup = helper.window->property("popup").value<QQuickPopup*>();
@@ -92,6 +93,7 @@ void tst_popup::overlay()
QQuickApplicationWindow *window = helper.window;
window->show();
+ window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QQuickItem *overlay = window->overlay();
@@ -160,6 +162,7 @@ void tst_popup::closePolicy()
QQuickApplicationWindow *window = helper.window;
window->show();
+ window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window));
QQuickPopup *popup = helper.window->property("popup").value<QQuickPopup*>();