Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / indent-node-to-split-to-crash.html
blob27f0b0f6bf04428be446ea48a7533451a0516371
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/JavaScript">
6 function runTest() {
7 document.execCommand('usecss', null, 'false');
9 var div = document.getElementById('a');
10 var range = document.createRange();
11 var sNode = div.childNodes[0];
12 var eNode = div.childNodes[3];
13 range.setStart(sNode, NaN);
14 range.setEnd(eNode, NaN);
15 getSelection().removeAllRanges();
16 getSelection().addRange(range);
18 document.execCommand('indent', null, true);
20 document.body.innerHTML = 'This test ensures WebKit does not crash when intending.<br>PASS';
22 testRunner.notifyDone();
25 if (window.testRunner) {
26 testRunner.dumpAsText();
27 testRunner.waitUntilDone();
30 </script>
31 </head>
32 <body onload="runTest()"><div contenteditable="" id="a"><div><br><div contenteditable="false"><table></table></div></div><blockquote><input></blockquote><br></br></div></body></html>