4 <script src=
"../editing.js" language=
"javascript" type=
"text/javascript"></script>
5 <script language=
"javascript" type=
"text/javascript">
8 var li
= document
.createElement("li");
9 li
.appendChild(document
.createTextNode(str
));
10 var console
= document
.getElementById("console");
11 console
.appendChild(li
);
14 function editingTest()
16 if (window
.testRunner
)
17 testRunner
.dumpAsText();
18 var editableArea
= document
.getElementById("test");
22 for (; i
<= editableArea
.firstChild
.data
.length
; ++i
) {
23 moveSelectionForwardByCharacterCommand();
24 if (getSelection().baseOffset
!= i
) {
35 <p>Test that moving insertion point over Thai text (without ligatures) always moves one character at a time.
</p>
36 <p>Should say PASS:
</p>
37 <div contenteditable
id=
"test">อยากไปความ
</div>
38 <ul id=
"console"></ul>
39 <script language=
"javascript" type=
"text/javascript">