Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / execCommand / indent-node-to-split-to-crash.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/JavaScript">
5
6 function runTest() {
7     document.execCommand('usecss', null, 'false');
8
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);
17
18     document.execCommand('indent', null, true);
19
20     document.body.innerHTML = 'This test ensures WebKit does not crash when intending.<br>PASS';
21
22     testRunner.notifyDone();
23 }
24
25 if (window.testRunner) {
26     testRunner.dumpAsText();
27     testRunner.waitUntilDone();
28 }
29
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>