Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / outdent-blockquote-test1.html
blob4f195e419bae835031d86bca0fcf089ea2c3179e
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("aSpan").nextSibling == document.getElementById("bottom")
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">
22 <blockquote class="webkit-indent-blockquote" id="top">
23 <span id="aSpan">A</span></blockquote><blockquote class="webkit-indent-blockquote" id="bottom">
24 <blockquote class="webkit-indent-blockquote" id="third">B</blockquote>
25 <span>C</span>
26 </blockquote>
27 </div>
28 </body>
29 </html>