blob: 3d8a30b9f34293a634baa1c8d0a29f6442d931db [file] [log] [blame]
pdr@google.come008b672012-12-12 21:31:59 +00001<!DOCTYPE html>
2<html>
3<body>
4Test that target conditions are correctly removed on document destruction.<br/>
5This 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>