Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: LayoutTests/svg/animations/remove-begin-event-crash.html

Issue 145583005: [SVG] Remove existing event listeners when eventBase conditions are cleared (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaselined and worked on review comments Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/animations/remove-begin-event-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/svg/animations/remove-begin-event-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698