Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / text-iterator / thai-cursor-movement.html
blobddcd7d5e40f11681600a838461a758010bf52be9
1 <html>
2 <head>
3 <meta charset="utf-8">
4 <script src="../editing.js" language="javascript" type="text/javascript"></script>
5 <script language="javascript" type="text/javascript">
6 function log(str)
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");
19 editableArea.focus();
21 var i = 1;
22 for (; i <= editableArea.firstChild.data.length; ++i) {
23 moveSelectionForwardByCharacterCommand();
24 if (getSelection().baseOffset != i) {
25 log("FAIL: " + i);
26 return;
30 log("PASS");
32 </script>
33 </head>
34 <body>
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">
40 runEditingTest();
41 </script>
42 </body>
43 </html>