Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-surrogatepair.html
blob22001445b093c5f7f00d6dbbb556c0ea481c7fe5
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 padding: 12px;
7 font-size: 24px;
9 </style>
10 <script src="../editing.js"></script>
11 <title>Delete Backward</title>
12 </head>
14 <body>
16 <p>This test makes sure that a surrogate-pair character is deleted by one pressing delete key</p>
17 <div contenteditable id="root0" class="editing">hogehoge</div>
18 <div contenteditable id="root1" class="editing">&#x2003E;hogehoge</div>
19 <div contenteditable id="root2" class="editing">a&#x2003E;</div>
20 <div contenteditable id="root3" class="editing">a&#x2003E;</div>
21 <div contenteditable id="root4" class="editing">&#x2003E;a</div>
22 <div contenteditable id="root5" class="editing">&#x2003E;a</div>
23 <div contenteditable id="root6" class="editing">a&#x2003E;a</div>
24 <div contenteditable id="root7" class="editing">a&#x2003E;a</div>
25 <div contenteditable id="root8" class="editing">a&#x2003E;a</div>
26 <div contenteditable id="root9" class="editing">a&#x2003E;&#x2003E;a</div>
27 <div contenteditable id="root10" class="editing">a&#x2003E;&#x2003E;a</div>
29 <script>
30 if (window.testRunner) {
31 var pos = [4, 1, 1, 2, 1, 2, 1, 2, 3, 2, 3];
32 for (var i = 0; i < 11; ++i) {
33 var div = document.getElementById("root" + i);
35 div.focus();
36 for (var j = 0; j < pos[i]; ++j)
37 testRunner.execCommand("MoveForward");
39 testRunner.execCommand("DeleteBackward");
42 testRunner.dumpAsText();
43 } else {
44 document.write("This test requires testRunner.<br>");
45 document.write("When doing manually, try to delete the above strings by hitting backspace key.");
48 </script>
50 </body>
51 </html>