Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / mixed-editability-1.html
blobf76a9f2986021343f21a3a7eeaf9fa1f98d19fd3
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
6 <body contenteditable="true"><span id="start" contenteditable="false">On</span>ly the first two letters of the first word in this sentence should be selected. To run this test manually, double click between the first two letters of the first word of the first sentence.</body>
8 <script>
9 if (window.testRunner) {
10 var s = window.getSelection();
12 var start = document.getElementById("start");
14 var x, y;
16 x = start.offsetLeft + start.offsetWidth / 2;
17 y = start.offsetTop + start.offsetHeight / 2;
19 eventSender.mouseMoveTo(x, y);
20 eventSender.mouseDown();
21 eventSender.mouseUp();
22 eventSender.mouseDown();
23 eventSender.mouseUp();
25 </script>