Index: LayoutTests/svg/animations/remove-begin-event-crash.html |
diff --git a/LayoutTests/svg/animations/remove-begin-event-crash.html b/LayoutTests/svg/animations/remove-begin-event-crash.html |
new file mode 100755 |
index 0000000000000000000000000000000000000000..b232e0563de7fc94df784cbad49e5740dd2640c4 |
--- /dev/null |
+++ b/LayoutTests/svg/animations/remove-begin-event-crash.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE HTML> |
+<html onload="mutate();"> |
+Test that event listeners are correctly removed when eventBase conditions are cleared. This test passes if it does not crash.<br/> |
+PASS |
+<svg> |
+ <animate id="anim" attributeName="visibility" /> |
+ <set begin="anim.beginEvent" id="set" to="100" attributeName="width" /> |
+</svg> |
+<script> |
+ var set = document.getElementById("set"); |
+ function mutate() { |
+ set.removeAttribute("begin"); |
+ set.parentNode.removeChild(set); |
+ delete set; |
+ } |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+</script> |
+</html> |