Index: LayoutTests/svg/as-image/animated-svg-animation-control.html |
diff --git a/LayoutTests/svg/as-image/animated-svg-animation-control.html b/LayoutTests/svg/as-image/animated-svg-animation-control.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..553715ab0ff6a7dc3b90f181d7c410561ef34195 |
--- /dev/null |
+++ b/LayoutTests/svg/as-image/animated-svg-animation-control.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<title>SVG-in-<img>: Animation resets when all references are removed.</title> |
+<img></img> |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+var img = document.querySelector('img'); |
+var imgurl = "resources/animated-rect-color.svg"; |
+img.src = imgurl; |
+setTimeout(function() { |
+ img.src = ""; |
+ setTimeout(function() { |
+ img.src = imgurl; |
+ setTimeout(function() { |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }, 10); |
+ }, 0); |
+}, 100); |
+</script> |
+ |