summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/tst_mouseClick.qml
diff options
context:
space:
mode:
authorValentin Fokin <fokinv@inf.u-szeged.hu>2017-11-13 10:09:13 +0100
committerValentin Fokin <fokinv@inf.u-szeged.hu>2017-12-19 10:04:39 +0000
commit78cc35d0705ef9f7b3e7785f031f77595ed71217 (patch)
treed12bcbb085cdcffc44f622fe8aec66d0c9064453 /tests/auto/quick/qmltests/data/tst_mouseClick.qml
parentf71217948ba690de6943ac09380260ff5e1c11fb (diff)
Add QML autotests for ContextMenu
Change-Id: If18bb163744b9064c0e4d97a9476851b6dee39ad Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_mouseClick.qml')
-rw-r--r--tests/auto/quick/qmltests/data/tst_mouseClick.qml18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_mouseClick.qml b/tests/auto/quick/qmltests/data/tst_mouseClick.qml
index 527102f59..bd6625a90 100644
--- a/tests/auto/quick/qmltests/data/tst_mouseClick.qml
+++ b/tests/auto/quick/qmltests/data/tst_mouseClick.qml
@@ -64,24 +64,6 @@ TestWebEngineView {
name: "WebEngineViewMouseClick"
when: windowShown
- function getElementCenter(element) {
- var center;
- runJavaScript("(function() {" +
- " var elem = document.getElementById('" + element + "');" +
- " var rect = elem.getBoundingClientRect();" +
- " return { 'x': (rect.left + rect.right) / 2, 'y': (rect.top + rect.bottom) / 2 };" +
- "})();", function(result) { center = result } );
- tryVerify(function() { return center != undefined; });
- return center;
- }
-
- function getTextSelection() {
- var textSelection;
- runJavaScript("window.getSelection().toString()", function(result) { textSelection = result });
- tryVerify(function() { return textSelection != undefined; });
- return textSelection;
- }
-
function test_singleClick() {
webEngineView.settings.focusOnNavigationEnabled = false;
webEngineView.loadHtml("<html><body>" +