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

Unified Diff: LayoutTests/svg/animations/script-tests/svg-animation-policy.js

Issue 802143002: AnimationPolicy setting is applied to SVG animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/script-tests/svg-animation-policy.js
diff --git a/LayoutTests/svg/animations/script-tests/svg-animation-policy.js b/LayoutTests/svg/animations/script-tests/svg-animation-policy.js
new file mode 100644
index 0000000000000000000000000000000000000000..570e003a6d38fb7d42141038960d483a6783e944
--- /dev/null
+++ b/LayoutTests/svg/animations/script-tests/svg-animation-policy.js
@@ -0,0 +1,20 @@
+embedSVGTestCase("resources/animation-policy.svg");
+
+function executeTest() {
+ rect = rootSVGElement.ownerDocument.getElementsByTagName("rect")[0];
+
+ const expectedValues = [
+ // [animationId, time, sampleCallback]
+ ["animation", 0.0, sample1],
+ ["animation", 1.0, sample2],
+ ["animation", 1.999, sample3],
+ ["animation", 2.0, sample4],
+ ["animation", 3.1, sample5],
+ ["animation", 3.999, sample6]
+ ];
+
+ runAnimationTest(expectedValues);
+}
+
+window.animationStartsImmediately = true;
+var successfullyParsed = true;
« no previous file with comments | « LayoutTests/svg/animations/resources/animation-policy.svg ('k') | LayoutTests/svg/animations/svg-animation-policy-none.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698