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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 description("Test cyclic for svg animations for syncbases");
2 embedSVGTestCase("resources/cyclic-syncbase.svg");
3
4 // Setup animation test
5 function sample1() {
6 shouldBeCloseEnough("rootSVGElement.getBBox().x", "100");
7 shouldBeCloseEnough("rootSVGElement.getBBox().y", "0");
8 }
9
10 function sample2() {
11 shouldBeCloseEnough("rootSVGElement.getBBox().x", "0");
12 shouldBeCloseEnough("rootSVGElement.getBBox().y", "100");
13 }
14
15 function executeTest() {
16
17 const expectedValues = [
18 // [animationId, time, sampleCallback]
19 ["anim", 0.01, sample1],
20 ["anim", 1.01, sample2],
21 ["anim", 2.01, sample1],
22 ["anim", 3.01, sample2],
23 ["anim", 4.01, sample1]
24 ];
25
26 runAnimationTest(expectedValues);
27 }
28
29 window.animationStartsImmediately = true;
30 var successfullyParsed = true;
31
OLDNEW
« 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