| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script> | 2 <script> |
| 3 function testCrash() { | 3 function testCrash() { |
| 4 q = document.getElementById('root'); | 4 q = document.getElementById('root'); |
| 5 r = document.createRange(); | 5 r = document.createRange(); |
| 6 r.selectNodeContents( q.getElementById('t') ); | 6 r.selectNodeContents( q.getElementById('t') ); |
| 7 window.getSelection().addRange(r) | 7 window.getSelection().addRange(r) |
| 8 document.designMode='on'; | 8 document.designMode='on'; |
| 9 document.execCommand('delete'); | 9 document.execCommand('delete'); |
| 10 document.execCommand('delete'); | 10 document.execCommand('delete'); |
| 11 | 11 |
| 12 if (window.layoutTestController) | 12 if (window.layoutTestController) |
| 13 layoutTestController.dumpAsText(); | 13 layoutTestController.dumpAsText(); |
| 14 } | 14 } |
| 15 </script> | 15 </script> |
| 16 <body onload="testCrash()"> | 16 <body onload="testCrash()"> |
| 17 This test passes if there is no crash or assert.<br/> | 17 This test passes if there is no crash or assert.<br/> |
| 18 <svg id="root" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org
/1999/xlink"> | 18 <svg id="root" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org
/1999/xlink"> |
| 19 <g> | 19 <g> |
| 20 <rect filter="url(#x)"/> | 20 <rect filter="url(#x)"/> |
| 21 <text>aa</text> | 21 <text>aa</text> |
| 22 <rect id="t"/> | 22 <rect id="t"/> |
| 23 <style></style> | 23 <style></style> |
| 24 <text>bb</text> | 24 <text>bb</text> |
| 25 </g> | 25 </g> |
| 26 <filter id="x"></filter> | 26 <filter id="x"></filter> |
| 27 </svg> | 27 </svg> |
| 28 </body> | 28 </body> |
| 29 </html> | 29 </html> |
| OLD | NEW |