Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / international / thai-offsetForPosition-inside-character.html
blob7a435150d658a4e34dfc7b543f4d5e95daf41b57
1 <p>
2 To test manually, verify that you can select each one of the Thai glyphs
3 separately from the other by dragging.
4 </p>
5 <p id="result">
6 </p>
7 <div id="target" style="font-size: 48px; float: left;">&#3652;&#3614;</div>
8 <script>
9 if (window.testRunner) {
10 testRunner.dumpAsText();
12 var result = document.getElementById("result");
13 result.innerText = "FAIL: Test did not finish";
15 var target = document.getElementById("target");
16 var x = target.offsetLeft + target.offsetWidth / 2;
17 var y = target.offsetTop + target.offsetHeight / 2;
19 eventSender.mouseMoveTo(x, y);
20 eventSender.mouseDown();
21 eventSender.mouseUp();
23 var selection = getSelection();
24 if (selection.baseNode === target.firstChild && selection.baseOffset === 1)
25 result.innerText = "PASS";
26 else
27 result.innerText = "FAIL: Clicking in the middle put the insertion point at " + selection.baseNode + "[" + selection.baseOffset + "]";
29 </script>