From 3ced4ab42fc936aa89f65848b767454347377ac0 Mon Sep 17 00:00:00 2001 From: Peter Varga <pvarga@inf.u-szeged.hu> Date: Tue, 27 Sep 2016 16:40:56 +0200 Subject: [PATCH] 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> --- tests/auto/quick/qmltests/BLACKLIST | 3 --- tests/auto/quick/qmltests/data/tst_navigationRequested.qml | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/quick/qmltests/BLACKLIST b/tests/auto/quick/qmltests/BLACKLIST index e271f59a6..16abe5ff6 100644 --- a/tests/auto/quick/qmltests/BLACKLIST +++ b/tests/auto/quick/qmltests/BLACKLIST @@ -13,9 +13,6 @@ osx [WebEngineViewLoadUrl::test_urlProperty] windows -[WebEngineViewNavigationRequested::test_navigationRequested] -* - [WebEngineViewSettings::test_javascriptDisabled] windows 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 -- GitLab