| OLD | NEW |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 2 <head> | 2 <head> |
| 3 <script src="../editing.js" language="javascript" type="text/javascript"
></script> | 3 <script src="../editing.js" language="javascript" type="text/javascript"
></script> |
| 4 <script language="javascript" type="text/javascript"> | 4 <script language="javascript" type="text/javascript"> |
| 5 function log(str) { | 5 function log(str) { |
| 6 var li = document.createElement("li"); | 6 var li = document.createElement("li"); |
| 7 li.appendChild(document.createTextNode(str)); | 7 li.appendChild(document.createTextNode(str)); |
| 8 var console = document.getElementById("console"); | 8 var console = document.getElementById("console"); |
| 9 console.appendChild(li); | 9 console.appendChild(li); |
| 10 } | 10 } |
| 11 function sendBackwardDeleteKey() { | 11 function sendBackwardDeleteKey() { |
| 12 if (window.eventSender) | 12 if (window.eventSender) |
| 13 eventSender.keyDown(String.fromCharCode(0x0008), null); | 13 eventSender.keyDown("backspace", null); |
| 14 } | 14 } |
| 15 function runTestOn(platform) { | 15 function runTestOn(platform) { |
| 16 var testarea = document.getElementById("test"); | 16 var testarea = document.getElementById("test"); |
| 17 if (window.internals) | 17 if (window.internals) |
| 18 internals.settings.setEditingBehavior(platform); | 18 internals.settings.setEditingBehavior(platform); |
| 19 | 19 |
| 20 testarea.focus(); | 20 testarea.focus(); |
| 21 moveSelectionForwardByCharacterCommand(); | 21 moveSelectionForwardByCharacterCommand(); |
| 22 moveSelectionForwardByCharacterCommand(); | 22 moveSelectionForwardByCharacterCommand(); |
| 23 sendBackwardDeleteKey(); | 23 sendBackwardDeleteKey(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 <body> | 41 <body> |
| 42 <p>This test tests whether the undo command works when the BackSpace key
deletes the last character of a ligature "วั".</p> | 42 <p>This test tests whether the undo command works when the BackSpace key
deletes the last character of a ligature "วั".</p> |
| 43 <p>If this test succeeds, you can see "วั" (U+0E27,U+0E31)
and a string "succeeded" for each platform below.</p> | 43 <p>If this test succeeds, you can see "วั" (U+0E27,U+0E31)
and a string "succeeded" for each platform below.</p> |
| 44 <div id="test" contenteditable>วั</div> | 44 <div id="test" contenteditable>วั</div> |
| 45 <ul id="console"></ul> | 45 <ul id="console"></ul> |
| 46 <script language="javascript" type="text/javascript"> | 46 <script language="javascript" type="text/javascript"> |
| 47 runEditingTest(); | 47 runEditingTest(); |
| 48 </script> | 48 </script> |
| 49 </body> | 49 </body> |
| 50 </html> | 50 </html> |
| OLD | NEW |