Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / undo / crash-delete-from-document.html
blob7674b83b138603380e2cba9b1991d271838f0cb2
1 <!DOCTYPE html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 window.onload = function () {
8 document.designMode = 'on';
10 document.body.textContent = 'aaaa';
11 document.execCommand('SelectAll');
12 document.execCommand('Italic');
13 window.getSelection().deleteFromDocument();
15 document.execCommand('Undo');
16 window.getSelection().deleteFromDocument();
18 document.body.textContent = 'PASS if Blink doesn\'t crash.';
20 </script>
21 </head>
22 <body>
23 </body>
24 </html>