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

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: Rebased and aligned with code review 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
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..a2eaf9c676f039457c633c964fc066597027c2e9
--- /dev/null
+++ b/LayoutTests/svg/animations/animate-restart-never.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+function click(x,y) {
+ if (window.eventSender) {
+ eventSender.mouseMoveTo(x, y);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ }
+}
+
+function animationEnded() {
+ click(50,50);
+ if (window.testRunner) {
+ testRunner.displayAsyncThen(function() {
+ testRunner.notifyDone();
+ });
+ }
+}
+</script>
+<svg>
+ <rect id="rect" width="100px" height="100px" fill="red">
+ <animate
+ begin="0s; rect.click"
+ dur="0.05s"
fs 2015/05/08 10:28:31 Please verify that this test fails reliably (in th
Shanmuga Pandi 2015/05/08 11:30:56 I have verified it , with out this fix, the test c
+ attributeName="fill"
+ from="red" to="green"
+ fill="freeze"
+ restart="never"
+ onend="animationEnded()"/>
+ </rect>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698