1 description("Test cyclic for svg animations for syncbases");
2 embedSVGTestCase("resources/cyclic-syncbase.svg");
4 // Setup animation test
6 shouldBeCloseEnough("rootSVGElement.getBBox().x", "100");
7 shouldBeCloseEnough("rootSVGElement.getBBox().y", "0");
11 shouldBeCloseEnough("rootSVGElement.getBBox().x", "0");
12 shouldBeCloseEnough("rootSVGElement.getBBox().y", "100");
15 function executeTest() {
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]
26 runAnimationTest(expectedValues);
29 window.animationStartsImmediately = true;
30 var successfullyParsed = true;