Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / space-after-removeformat.html
blobd0e9b950c62dbec5e6a4f5425761d12ae7281e52
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpEditingCallbacks();
4 testRunner.dumpAsText();
5 }
6 </script>
7 <p>This is a test for execCommand("RemoveFormat"). You should see Some%20text before and after RemoveFormat is executed. This test case is due to the WebKit bug 14062, regression (r21212).</p>
8 <div id="div"><span id="test">Some text.</span></div>
9 <p>Before: <span id="console1"></span></p>
10 <p>After: <span id="console2"></span></p>
12 <script>
14 function log(message, k) {
15 var console = document.getElementById("console"+k);
16 var text = document.createTextNode(message);
18 console.appendChild(text);
21 var e = document.getElementById("test");
22 var s = window.getSelection();
24 log(escape(e.innerHTML),1);
26 r = document.createRange();
27 r.selectNode(e);
28 s.addRange(r);
29 document.designMode = 'on';
30 document.execCommand("RemoveFormat", false, "");
32 log(escape(e.innerHTML),2);
34 </script>