Index: LayoutTests/svg/animations/animate-element-reinserted-crash.html |
diff --git a/LayoutTests/svg/animations/animate-element-reinserted-crash.html b/LayoutTests/svg/animations/animate-element-reinserted-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c31527f57411812ce4008dc7cd9e0ed4b2aabbad |
--- /dev/null |
+++ b/LayoutTests/svg/animations/animate-element-reinserted-crash.html |
@@ -0,0 +1,30 @@ |
+<!doctype html> |
+<div> |
+ <svg width="200" height="200"> |
+ <rect width="20" height="20" x="10" y="10"> |
+ <animate attributeName="fill" values="#111; #111" dur="2s" repeatCount="indefinite"/> |
+ </rect> |
+ </svg> |
+</div> |
+<script type="text/javascript"> |
+function pass() { |
+ document.write("PASS"); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+} |
+window.onload = function() { |
+ if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.dumpAsText(); |
+ } |
+ window.setTimeout(function() { |
+ var f = document.createDocumentFragment(); |
+ var n = document.querySelector('div'); |
+ while (n.lastChild) { |
+ f.appendChild(n.lastChild); |
+ } |
+ n.appendChild(f); |
+ window.setTimeout(pass, 0); |
+ }, 20); |
+}; |
+</script> |