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

Unified Diff: LayoutTests/svg/as-image/animated-svg-animation-control.html

Issue 206033005: Rewind the timeline for SVG-in-<img> when resetAnimation() is called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reduce timeouts some more. Created 6 years, 9 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
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-&lt;img&gt;: 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>
+

Powered by Google App Engine
This is Rietveld 408576698