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

Unified Diff: LayoutTests/svg/animations/animate-restart-never.html

Issue 1119723002: SVG animate should respect attribute 'restart=never'. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: simplified layout test case Created 5 years, 7 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/animate-restart-never-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/animations/animate-restart-never.html
diff --git a/LayoutTests/svg/animations/animate-restart-never.html b/LayoutTests/svg/animations/animate-restart-never.html
new file mode 100644
index 0000000000000000000000000000000000000000..19942da64dfd69b75b05b5d1e1e36390ca319fbe
--- /dev/null
+++ b/LayoutTests/svg/animations/animate-restart-never.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+function animationEnded() {
+ var anim = document.getElementById('anim');
+ anim.beginElement();
+ testRunner.displayAsyncThen(function() {
fs 2015/05/05 14:39:20 Always good to be able to run the test without the
+ testRunner.notifyDone();
fs 2015/05/05 14:39:20 This still feels like it will be flaky - beginElem
+ });
+}
+</script>
+<svg>
+ <rect id="rect" width="100px" height="100px" fill="red">
+ <animate id="anim"
+ begin="0s"
+ dur="0.2s"
fs 2015/05/05 14:39:19 Now this test takes 200+ms...
+ attributeName="fill"
+ from="red" to="green"
+ fill="freeze"
+ restart="never"
+ onend="animationEnded()"/>
+ </rect>
+</svg>
« no previous file with comments | « no previous file | LayoutTests/svg/animations/animate-restart-never-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698