Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / apply-style-crash2.html
blob7483cb97864471f053735ef31dd54c606e0470ea
1 <!DOCTYPE html>
2 <html>
3 <body>
4 This test passes if it does not crash.
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 el1 = document.createElement('li');
10 document.body.appendChild(el1);
11 el2 = document.createElement('thead');
12 el1.appendChild(el2);
13 el2.parentNode.insertBefore(document.createElement('video'), el2);
14 el2.parentNode.insertBefore(document.createElement('input'), el2);
15 document.designMode = 'on';
16 window.getSelection().setBaseAndExtent(el1, 2, el2, 4);
17 document.designMode = 'off';
18 window.getSelection().modify('extend', 'backward', 'character');
19 el1.innerHTML = "PASS";
20 document.designMode = 'on';
21 document.execCommand('FontSizeDelta', false, '-1px');
22 document.designMode = 'off';
23 </script>
24 </body>
25 </html>