Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / outdent-blockquote-test4.html
blob341b9837ab6535f27ad8bce1bf7d643b38709660
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 function test() {
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.");
16 </script>
17 </head>
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>
20 <br>
21 <div contenteditable="true" id="contentDiv"><blockquote class="webkit-indent-blockquote">
22 <blockquote class="webkit-indent-blockquote">
23 <br>A
24 </blockquote>
25 <br>
27 </blockquote>
28 </div>
29 </body>
30 </html>