Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / svg / animations / remove-begin-event-crash.html
1 <!DOCTYPE HTML>
2 <html onload="mutate();">
3 Test that event listeners are correctly removed when eventBase conditions are cleared. This test passes if it does not crash.<br/>
4 PASS
5 <svg>
6   <animate id="anim" attributeName="visibility" />
7   <set begin="anim.beginEvent" id="set" to="100" attributeName="width" />
8 </svg>
9 <script>
10   var set = document.getElementById("set");
11   function mutate() {
12     set.removeAttribute("begin");
13     set.parentNode.removeChild(set);
14     delete set;
15   }
16   if (window.testRunner)
17     testRunner.dumpAsText();
18 </script>
19 </html>