Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / svg / animations / mpath-remove-from-dependents-on-delete-crash.html
1 <html xmlns="http://www.w3.org/1999/xhtml">
2   <body>
3     <svg id="svgRoot" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4       <path id="path_a" />
5       <circle id="myc">
6         <animateMotion id="A" >
7           <mpath xlink:href="#path_a" />
8         </animateMotion>
9       </circle>
10     </svg>
11
12     <script type="text/javascript">
13       if (window.testRunner) {
14           testRunner.waitUntilDone();
15       }
16       onload = function() {
17         if (location.hash != '#5') {
18           if (window.GCController)
19             window.GCController.collect();
20           else if (window.gc)
21             gc();
22           document.getElementById("A").insertBefore(document.getElementById("path_a"), null);
23           if (location.hash == '')
24             location.hash = '#1';
25           else
26             location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toString();
27           setTimeout(function(){ location.reload() }, 0);
28         } else {
29           document.body.innerText = 'PASS: WebKit did not crash.';
30           if (window.testRunner)
31             testRunner.notifyDone();
32         }
33       }
34     </script>
35
36   </body>
37 </html>