upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / outdent-blockquote-test2.html
1 <html>
2 <head>
3     <script>
4         if (window.layoutTestController)
5              layoutTestController.dumpAsText();
6
7         function test() {
8             var selection = window.getSelection();
9             selection.selectAllChildren(document.getElementById("contentDiv"));
10             document.execCommand("Outdent", false, "");
11
12             console.log(document.getElementById("contentDiv").children.length == 3
13                 ? "SUCCESS: Nodes stayed in order after outdent."
14                 : "FAILED: Nodes became out of order after outdent.");
15         }
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" >
23             <blockquote class="webkit-indent-blockquote" id="a" >A</blockquote>
24             <blockquote class="webkit-indent-blockquote" id="cd">B<br>C</blockquote>
25         </blockquote>
26     </div>
27 </body>
28 </html>