Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / execCommand / 5700414-2.html
1 <div id="outerdiv" contenteditable="true">
2     <div>There should be a H1 with BR block below, followed by a normal empty paragraph.</div>
3     <div id="div"><br><br></div>
4     <div id="div">There should be a single empty paragraph above.</div>
5 </div>
6 <p id="console"></p>
7
8 <script>
9
10 if (window.testRunner)
11     testRunner.dumpAsText();
12
13 function log(message) {
14     var console = document.getElementById("console");
15     var text = document.createTextNode(message);
16     console.appendChild(text);
17 }
18
19 div = document.getElementById("div");
20 window.getSelection().collapse(div, 0);
21 document.execCommand("FormatBlock", false, "h1");
22
23 log(document.getElementById('outerdiv').innerHTML);
24
25 </script>