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

Unified Diff: LayoutTests/svg/animations/script-tests/cyclic-syncbase.js

Issue 80263007: [SVG] Regression: SVG syncbase animation no longer supports cyclic references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaselined Created 7 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/cyclic-syncbase.js
diff --git a/LayoutTests/svg/animations/script-tests/cyclic-syncbase.js b/LayoutTests/svg/animations/script-tests/cyclic-syncbase.js
new file mode 100755
index 0000000000000000000000000000000000000000..978b016c6e749c8e5547487d19a94301d7bf70f8
--- /dev/null
+++ b/LayoutTests/svg/animations/script-tests/cyclic-syncbase.js
@@ -0,0 +1,31 @@
+description("Test cyclic for svg animations for syncbases");
+embedSVGTestCase("resources/cyclic-syncbase.svg");
+
+// Setup animation test
+function sample1() {
+ shouldBeCloseEnough("rootSVGElement.getBBox().x", "100");
+ shouldBeCloseEnough("rootSVGElement.getBBox().y", "0");
+}
+
+function sample2() {
+ shouldBeCloseEnough("rootSVGElement.getBBox().x", "0");
+ shouldBeCloseEnough("rootSVGElement.getBBox().y", "100");
+}
+
+function executeTest() {
+
+ const expectedValues = [
+ // [animationId, time, sampleCallback]
+ ["anim", 0.01, sample1],
+ ["anim", 1.01, sample2],
+ ["anim", 2.01, sample1],
+ ["anim", 3.01, sample2],
+ ["anim", 4.01, sample1]
+ ];
+
+ runAnimationTest(expectedValues);
+}
+
+window.animationStartsImmediately = true;
+var successfullyParsed = true;
+
« no previous file with comments | « LayoutTests/svg/animations/resources/cyclic-syncbase.svg ('k') | Source/core/svg/animation/SMILTimeContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698