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>
6 window
.testRunner
.dumpAsText();
7 var s
= window
.getSelection();
8 var div
= document
.getElementById("test");
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
)
21 output
+= "Failure. Expected: " + expected
+ ", found: " + actual
;
23 document
.body
.innerText
= output
;