OLD | NEW |
1 <!-- This test passes if there is no crash. --> | 1 <!-- This test passes if there is no crash. --> |
2 <script> | 2 <script> |
3 function go() { | 3 function go() { |
4 | 4 |
5 if (window.layoutTestController) | 5 if (window.layoutTestController) |
6 layoutTestController.dumpAsText(); | 6 layoutTestController.dumpAsText(); |
7 | 7 |
8 q = document.getElementById('root').contentDocument; | 8 q = document.getElementById('root').contentDocument; |
9 q.firstChild.setAttribute('style', 'content:counter(item)'); | 9 q.firstChild.setAttribute('style', 'content:counter(item)'); |
10 | 10 |
11 document.designMode = 'on'; | 11 document.designMode = 'on'; |
12 q.execCommand('selectAll'); | 12 q.execCommand('selectAll'); |
13 q.execCommand('insertImage'); | 13 q.execCommand('insertImage'); |
14 q.getElementById('x').appendChild( q.firstChild.cloneNode(1) ); | 14 q.getElementById('x').appendChild( q.firstChild.cloneNode(1) ); |
15 q.execCommand('undo'); | 15 q.execCommand('undo'); |
16 } | 16 } |
17 </script> | 17 </script> |
18 <object data="resources/bug78838.svg" id="root" onload="go()"/></object> | 18 <object data="resources/bug78838.svg" id="root" onload="go()"/></object> |
19 <p>PASSED</p> | 19 <p>PASSED</p> |
OLD | NEW |