summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/tst_newViewRequest.qml
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2016-11-08 16:18:15 +0100
committerPeter Varga <pvarga@inf.u-szeged.hu>2016-11-16 14:50:54 +0000
commite3378e1968d7740eb077562bea251759adf1d97e (patch)
treed5631010d440bb7654b5191954a47400e4711058 /tests/auto/quick/qmltests/data/tst_newViewRequest.qml
parent983ae112927c600867377ac46f6e4b65856bacbf (diff)
Wait for focus before key press in NewViewRequest::test_jsWindowOpen
This patch is intended to fix flaky failure and factors focus related test functions out to TestWebEngineView. Task-number: QTBUG-56540 Change-Id: Id7e17c08a4a9e863389ae991c9cadc00379377db Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_newViewRequest.qml')
-rw-r--r--tests/auto/quick/qmltests/data/tst_newViewRequest.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_newViewRequest.qml b/tests/auto/quick/qmltests/data/tst_newViewRequest.qml
index be56f3251..754a9e018 100644
--- a/tests/auto/quick/qmltests/data/tst_newViewRequest.qml
+++ b/tests/auto/quick/qmltests/data/tst_newViewRequest.qml
@@ -122,6 +122,7 @@ TestWebEngineView {
" <button id='popupButton' onclick='popup()'>Pop Up!</button>" +
"</body></html>");
verify(webEngineView.waitForLoadSucceeded());
+ verifyElementHasFocus("popupButton");
keyPress(Qt.Key_Enter);
tryCompare(newViewRequestedSpy, "count", 1);