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

Unified Diff: LayoutTests/svg/animations/animation-begin-change-js.html

Issue 1127313007: SVG animate element's begin/end attribute set by js, should animate. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed testRunner from Layout test 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 | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/animations/animation-begin-change-js.html
diff --git a/LayoutTests/svg/animations/animation-begin-change-js.html b/LayoutTests/svg/animations/animation-begin-change-js.html
new file mode 100644
index 0000000000000000000000000000000000000000..397580205570bbbab180c70605ca14761e6a59cb
--- /dev/null
+++ b/LayoutTests/svg/animations/animation-begin-change-js.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<title>Tests that animation works, if changing begin to contain an event-base trigger.</title>
+<script src=../../resources/testharness.js></script>
+<script src=../../resources/testharnessreport.js></script>
+<svg>
+ <rect id="rect" width="100" height="100">
+ <set id="anim"
+ begin="indefinite"
+ dur="0.05s"
+ attributeName="width"
+ to="50"
+ fill="freeze"/>
+ </rect>
+</svg>
+<script>
+ var anim = document.getElementById("anim");
+ var t = async_test(document.title);
+ anim.onbegin = t.step_func(function() {
+ assert_equals(document.getElementById("rect").getAttribute("width"), "50");
+ t.done();
+ });
+
+ anim.setAttribute("begin","rect.click");
+ if (window.eventSender) {
+ eventSender.mouseMoveTo(50, 50);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ }
+</script>
« no previous file with comments | « no previous file | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698