2 To test manually, verify that you can select each one of the Thai glyphs
3 separately from the other by dragging.
7 <div id=
"target" style=
"font-size: 48px; float: left;">ไพ</div>
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";
27 result
.innerText
= "FAIL: Clicking in the middle put the insertion point at " + selection
.baseNode
+ "[" + selection
.baseOffset
+ "]";