Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-ligature-003.html
blob07a291e5ea6388d8d3f2c56ebe9395e296e24321
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <script src="../editing.js" language="javascript" type="text/javascript" ></script>
4 <script language="javascript" type="text/javascript">
5 function log(str) {
6 var li = document.createElement("li");
7 li.appendChild(document.createTextNode(str));
8 var console = document.getElementById("console");
9 console.appendChild(li);
11 function sendBackwardDeleteKey() {
12 if (window.eventSender)
13 eventSender.keyDown("backspace", null);
15 function runTestOn(platform) {
16 var testarea = document.getElementById("test");
17 if (window.internals)
18 internals.settings.setEditingBehavior(platform);
20 testarea.focus();
21 moveSelectionForwardByCharacterCommand();
22 moveSelectionForwardByCharacterCommand();
23 sendBackwardDeleteKey();
24 execUndoCommand();
25 if (testarea.textContent == "\u0E27\u0E31")
26 log("Succeeded for " + platform);
27 else
28 log("Failed. Actual: \"" + testarea.value + "\", Expected: \"\u0E27\u0E31\"");
30 function editingTest() {
31 if (window.testRunner)
32 testRunner.dumpAsText();
33 runTestOn("mac");
34 runTestOn("win");
35 runTestOn("unix");
36 runTestOn("android");
38 </script>
39 <title>Editing Test (Undo deleting a ligature)</title>
40 </head>
41 <body>
42 <p>This test tests whether the undo command works when the BackSpace key deletes the last character of a ligature "&#x0E27;&#x0E31;".</p>
43 <p>If this test succeeds, you can see "&#x0E27;&#x0E31;" (U+0E27,U+0E31) and a string "succeeded" for each platform below.</p>
44 <div id="test" contenteditable>&#x0E27;&#x0E31;</div>
45 <ul id="console"></ul>
46 <script language="javascript" type="text/javascript">
47 runEditingTest();
48 </script>
49 </body>
50 </html>