pdr@google.com | e008b67 | 2012-12-12 21:31:59 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <body> |
| 4 | Test that target conditions are correctly removed on document destruction.<br/> |
| 5 | This test passes if it does not crash<br/> |
| 6 | <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="100" height="100"> |
| 7 | <path id="path"></path> |
| 8 | <use xlink:href="#path"> |
| 9 | <animateMotion begin="click"></animateMotion> |
| 10 | </use> |
| 11 | </svg> |
| 12 | <script type="text/javascript"> |
| 13 | if (window.testRunner) |
| 14 | testRunner.waitUntilDone(); |
| 15 | |
| 16 | window.setTimeout(function(){ |
| 17 | if (location.hash != '#5') { |
| 18 | if (window.GCController) |
| 19 | window.GCController.collect(); |
| 20 | else if (window.gc) |
| 21 | gc(); |
| 22 | if (location.hash == '') |
| 23 | location.hash = '#1'; |
| 24 | else |
| 25 | location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toString(); |
| 26 | location.reload(); |
| 27 | } else { |
| 28 | document.write('PASS: Test did not crash.'); |
| 29 | if (window.testRunner) { |
| 30 | testRunner.dumpAsText(); |
| 31 | testRunner.notifyDone(); |
| 32 | } |
| 33 | } |
| 34 | }, 0); |
| 35 | </script> |
| 36 | </body> |
| 37 | </html> |