| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <script src="../editing.js" language="javascript" type="text/javascript" ></script> |
| <script language="javascript" type="text/javascript"> |
| var li = document.createElement("li"); |
| li.appendChild(document.createTextNode(str)); |
| var console = document.getElementById("console"); |
| function sendBackwardDeleteKey() { |
| eventSender.keyDown(String.fromCharCode(0x0008), null); |
| var testarea = document.getElementById("test"); |
| typeCharacterCommand(String.fromCharCode(0x0E27)); |
| typeCharacterCommand(String.fromCharCode(0x0E31)); |
| moveSelectionBackwardByCharacterCommand(); |
| moveSelectionForwardByCharacterCommand(); |
| if (testarea.textContent == "\u0E27") |
| log("Failed. Actual: \"" + testarea.textContent + "\", Expected: \"\u0E27\""); |
| <title>Editing Test (Deleting a ligature)</title> |
| <p>This test tests whether the BackSpace key deletes only the last character of a ligature "วั".</p> |
| <p>If this test succeeds, you can see "ว" (U+0E27) and a string "succeeded" below.</p> |
| <div id="test" contenteditable></div> |
| <script language="javascript" type="text/javascript"> |