Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / selection / clear-selection-crash.html
1 <!DOCTYPE html>\r
2 <html>\r
3 <body>\r
4 <div style="display: -webkit-inline-box">\r
5     <div id="start" style="display: -webkit-inline-box">\r
6         <i>\r
7             <div style="display: run-in; height: 1px"></div>\r
8             <span id="span1" style="width: 1px">A</span>\r
9         </i>\r
10     </div>\r
11     <i>B</i>\r
12 </div>\r
13 <script>\r
14 if (window.testRunner)\r
15     testRunner.dumpAsText();\r
16 \r
17 document.body.offsetTop;\r
18 document.designMode = 'on';\r
19 document.execCommand('selectall');\r
20 document.body.offsetTop;\r
21 span1.style.display = 'block';\r
22 \r
23 document.body.offsetTop;\r
24 document.body.innerHTML = "PASS. WebKit didn't crash.";\r
25 </script>\r
26 </body>\r
27 </html>\r