OLD | NEW |
1 <html> | 1 <html> |
2 <!-- This test passes if there is no crash or assert --> | 2 <!-- This test passes if there is no crash or assert --> |
3 <!-- This test should be updated to use DumpAsText once WK81006 is fixed --> | |
4 <!-- The style overflow should be removed once we migrate to DumpAsText as well
--> | |
5 <style type="text/css"> | 3 <style type="text/css"> |
6 body { | 4 body { |
7 overflow: hidden; | 5 overflow: hidden; |
8 } | 6 } |
9 </style> | 7 </style> |
10 <script> | 8 <script> |
11 function testCrash() { | 9 function testCrash() { |
12 q = document.getElementById('root'); | 10 q = document.getElementById('root'); |
13 r = document.createRange(); | 11 r = document.createRange(); |
14 r.selectNodeContents( q.getElementById('t') ); | 12 r.selectNodeContents( q.getElementById('t') ); |
15 window.getSelection().addRange(r) | 13 window.getSelection().addRange(r) |
16 document.designMode='on'; | 14 document.designMode='on'; |
17 document.execCommand('delete'); | 15 document.execCommand('delete'); |
18 document.execCommand('delete'); | 16 document.execCommand('delete'); |
19 } | 17 } |
| 18 |
| 19 if (window.layoutTestController) |
| 20 layoutTestController.dumpAsText(); |
20 </script> | 21 </script> |
21 <body onload="testCrash()"> | 22 <body onload="testCrash()"> |
22 <svg id="root" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org
/1999/xlink"> | 23 <svg id="root" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org
/1999/xlink"> |
23 <g> | 24 <g> |
24 <rect filter="url(#x)"/> | 25 <rect filter="url(#x)"/> |
25 <text>aa</text> | 26 <text>aa</text> |
26 <rect id="t"/> | 27 <rect id="t"/> |
27 <style></style> | 28 <style></style> |
28 <text>bb</text> | 29 <text>bb</text> |
29 </g> | 30 </g> |
30 <filter id="x"></filter> | 31 <filter id="x"></filter> |
31 </svg> | 32 </svg> |
32 </body> | 33 </body> |
33 </html> | 34 </html> |
OLD | NEW |