| 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>
|
|
|