Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / insert-list-with-id.html
bloba998e8d1c094c8d7d2ed3c42820d1ff096cf41dd
1 <div id="description">This test makes sure InsertOrderedList ignores the third argument passed to execCommand and does not add an id attribute to the inserted list.</div>
2 <div id="test" contenteditable="true">list item</div>
4 <script>
5 if (window.testRunner)
6 window.testRunner.dumpAsText();
7 var s = window.getSelection();
8 var div = document.getElementById("test");
9 var id = "foo";
10 s.collapse(div, 0);
11 document.execCommand("InsertOrderedList", false, id);
13 expected = "<ol><li>list item</li></ol>";
14 actual = div.innerHTML;
16 output = document.getElementById("description").innerText + "\n\n";
18 if (expected == actual)
19 output += "Success";
20 else
21 output += "Failure. Expected: " + expected + ", found: " + actual;
23 document.body.innerText = output;
24 </script>