4 if (window.layoutTestController)
5 layoutTestController.dumpAsText();
8 var selection = window.getSelection();
9 selection.selectAllChildren(document.getElementById("contentDiv"));
10 document.execCommand("Outdent", false, "");
12 console.log(document.getElementById("contentDiv").firstChild.tagName == "BLOCKQUOTE"
13 ? "SUCCESS: Nodes stayed in order after outdent."
14 : "FAILED: Nodes became out of order after outdent.");
18 <body onload="test()">
19 <div id="description">This test uses the execCommand to Outdent the text below. <b>This test that nodes, with different relationships with blockquotes, stay in the correct order after an outdent.</b></div>
21 <div contenteditable="true" id="contentDiv"><blockquote class="webkit-indent-blockquote">
22 <blockquote class="webkit-indent-blockquote">A</blockquote>