summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/tst_navigationRequested.qml
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2016-09-27 16:40:56 +0200
committerPeter Varga <pvarga@inf.u-szeged.hu>2016-09-30 05:17:30 +0000
commit3ced4ab42fc936aa89f65848b767454347377ac0 (patch)
tree7c2116ed786a853a280eaca3df70347058ade707 /tests/auto/quick/qmltests/data/tst_navigationRequested.qml
parent25b50de487a34fb8ffcd6d891c833b2f2907c91c (diff)
Fix clicking in test_navigationRequested
The second mouse click in the test was handled as a double click. Workaround the issue by changing click coordinate in the initialization. Task-number: QTBUG-56180 Change-Id: I12e94ed5dbccdde4c0e6335e8a1c8a5e59b2d6a6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_navigationRequested.qml')
-rw-r--r--tests/auto/quick/qmltests/data/tst_navigationRequested.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_navigationRequested.qml b/tests/auto/quick/qmltests/data/tst_navigationRequested.qml
index b1c94e601..5013f2fbe 100644
--- a/tests/auto/quick/qmltests/data/tst_navigationRequested.qml
+++ b/tests/auto/quick/qmltests/data/tst_navigationRequested.qml
@@ -83,6 +83,9 @@ TestWebEngineView {
when: windowShown
function init() {
+ // Workaround for QTBUG-56223
+ mouseClick(webEngineView, 0, 0)
+
attributes.clear()
navigationSpy.clear()
shouldIgnoreLinkClicks = false