Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: third_party/WebKit/LayoutTests/fast/events/touch/gesture/right-click-gestures-set-cursor-at-correct-position.html

Issue 2249663002: Fixed & refactored mouse event firing at gesture context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests, removed one overfitting Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/events/touch/gesture/right-click-gestures-set-cursor-at-correct-position.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/gesture/right-click-gestures-set-cursor-at-correct-position.html b/third_party/WebKit/LayoutTests/fast/events/touch/gesture/right-click-gestures-set-cursor-at-correct-position.html
deleted file mode 100644
index f80c6554cc47a6e1026128cebea4b09cf0a53de6..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/touch/gesture/right-click-gestures-set-cursor-at-correct-position.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-</head>
-<body>
-<p>
-This test checks that on a two finger tap gesture in a text area, the cursor is
-first set to the right position (this is done by sending a right mouse button
-down event just before long press).
-</p>
-<textarea id="text" rows="5" cols="31">
-This test checks that on a two finger tap gesture in a text area, the cursor is
-first set to the right position (this is done by sending a right mouse button
-down event just before long press).
-</textarea>
-<div id="text">Testing</div>
-<div id="result">FAIL</div>
-<script>
-function setCursorPosition(position)
-{
- var text = document.getElementById("text");
- text.focus();
- text.setSelectionRange(position, position);
-}
-
-if (window.testRunner)
- testRunner.dumpAsText();
-
-var text = document.getElementById("text");
-
-setCursorPosition(0);
-
-document.oncontextmenu = function() {
- if (text.selectionStart != 0)
- document.getElementById("result").innerHTML = "PASS";
-}
-
-var text = document.getElementById("text");
-
-var x = text.offsetLeft + 10;
-var y = text.offsetTop + 40;
-
-if (window.eventSender) {
- if (eventSender.gestureTwoFingerTap)
- eventSender.gestureTwoFingerTap(x, y);
- else
- debug("gestureTwoFingerTap not implemented by this platform");
-}
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698