OLD | NEW |
1 <!-- This test passes if there is no crash. --> | 1 <!-- This test passes if there is no crash. --> |
2 <!-- It was created by the fuzzer and has been reduced. --> | 2 <!-- It was created by the fuzzer and has been reduced. --> |
3 <script> | 3 <script> |
4 function go() { | 4 function go() { |
5 | 5 |
6 if (window.layoutTestController) | 6 if (window.layoutTestController) |
7 layoutTestController.dumpAsText(); | 7 layoutTestController.dumpAsText(); |
8 | 8 |
9 q = document.getElementById('root').contentDocument; | 9 q = document.getElementById('root').contentDocument; |
10 | 10 |
11 r = document.createRange(); | 11 r = document.createRange(); |
12 s = window.getSelection(); | 12 s = window.getSelection(); |
13 | 13 |
14 r.selectNodeContents( q.getElementById('g') ); | 14 r.selectNodeContents( q.getElementById('g') ); |
15 s.addRange( r ); | 15 s.addRange( r ); |
16 | 16 |
17 document.designMode = 'on'; | 17 document.designMode = 'on'; |
18 q.execCommand('formatBlock', 1, 'h1'); | 18 q.execCommand('formatBlock', 1, 'h1'); |
19 q.execCommand('formatBlock', 1, 'h1'); | 19 q.execCommand('formatBlock', 1, 'h1'); |
20 q.execCommand('formatBlock', 1, 'h1'); | 20 q.execCommand('formatBlock', 1, 'h1'); |
21 document.open(); | 21 document.open(); |
22 } | 22 } |
23 </script> | 23 </script> |
24 <object data="resources/bug79798.svg" id="root" onload="go()"/</object> | 24 <object data="resources/bug79798.svg" id="root" onload="go()"/</object> |
OLD | NEW |