Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / firstRect-crash.html
blob0ee4925ca18fccda89dd8a39fa27b6873fd351cc
1 <body>
2 <p>This test passes if we don't crash.</p>
3 <h2 id='h2' class="sidebar-title">Trending:</h2>
4 <p id='p'>test</p>
5 <script>
6 function runTest()
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 window.getSelection().setBaseAndExtent(
12 document.getElementById("h2").firstChild, 9,
13 document.getElementById("p"), 0);
14 document.getElementById("p").style.display = "none";
16 document.getElementById("h2").innerText = "PASSED";
18 runTest();
19 </script>
20 </body>