OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <style> | |
4 hr { display: table-cell; } | |
5 </style> | |
6 <script> | 3 <script> |
7 if (window.testRunner) | 4 if (window.testRunner) |
8 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
9 | 6 |
10 onload = function() { | 7 window.onload = function () { |
11 document.designMode = 'on'; | 8 document.designMode = 'on'; |
| 9 |
| 10 document.body.textContent = 'aaaa'; |
12 document.execCommand('SelectAll'); | 11 document.execCommand('SelectAll'); |
13 document.execCommand('Indent'); | 12 document.execCommand('Italic'); |
| 13 window.getSelection().deleteFromDocument(); |
| 14 |
| 15 document.execCommand('Undo'); |
| 16 window.getSelection().deleteFromDocument(); |
| 17 |
14 document.body.textContent = 'PASS if Blink doesn\'t crash.'; | 18 document.body.textContent = 'PASS if Blink doesn\'t crash.'; |
15 }; | 19 }; |
16 </script> | 20 </script> |
17 </head> | 21 </head> |
18 <body> | 22 <body> |
19 before<hr><hr>after | |
20 </body> | 23 </body> |
21 </html> | 24 </html> |
OLD | NEW |