summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/tst_mouseClick.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_mouseClick.qml')
-rw-r--r--tests/auto/quick/qmltests/data/tst_mouseClick.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_mouseClick.qml b/tests/auto/quick/qmltests/data/tst_mouseClick.qml
index bd6625a90..d81e690fd 100644
--- a/tests/auto/quick/qmltests/data/tst_mouseClick.qml
+++ b/tests/auto/quick/qmltests/data/tst_mouseClick.qml
@@ -57,6 +57,10 @@ TestWebEngineView {
function mouseTripleClick(item, x, y) {
mouseMultiClick(item, x, y, 3);
}
+
+ function mouseQuadraClick(item, x, y) {
+ mouseMultiClick(item, x, y, 4);
+ }
}
@@ -109,5 +113,18 @@ TestWebEngineView {
mouseClick(webEngineView, center.x, center.y);
tryVerify(function() { return getTextSelection() == "" });
}
+
+ function test_quadraClick() {
+ webEngineView.settings.focusOnNavigationEnabled = true;
+ webEngineView.loadHtml("<html><body onload='document.getElementById(\"input\").focus()'>" +
+ "<form><input id='input' width='150' type='text' value='The Qt Company' /></form>" +
+ "</body></html>");
+ verify(webEngineView.waitForLoadSucceeded());
+
+ var center = getElementCenter("input");
+ webEngineView.testSupport.mouseQuadraClick(webEngineView, center.x, center.y);
+ verifyElementHasFocus("input");
+ tryVerify(function() { return getTextSelection() == "" });
+ }
}
}