Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / svg / animations / smil-element-not-removed-crash.html
1 <html>
2     <body onload="runSMILTest()">
3         <svg>
4             <animAttributeAttrs>
5                 <feImage id="test"></feImage>
6             </animAttributeAttrs>
7             <set id="set1" xlink:href="#test"></set>
8         </svg>
9         <script>
10             if (window.testRunner) {
11                 testRunner.dumpAsText();
12                 testRunner.waitUntilDone();
13                 gc = function() { window.GCController.collect() };
14             } else if (!window.gc)
15                 gc = function(){};
16
17             window.onload = function() {
18                 if (location.hash != "#2") {
19                     if (location.hash)
20                         location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toString();
21                     else
22                         location.hash = "#1";
23                     
24                     gc();
25                     setTimeout(function(){location.reload()}, 0);
26                 } else {
27                     document.body.innerHTML = "PASS";
28                     if (window.testRunner)
29                         testRunner.notifyDone();
30                 }
31             }
32         </script>
33     </body>
34 </html>
35