OLD | NEW |
1 description("A copy of the corresponding W3C-SVG-1.1 test, which dumps the anima
tion at certain times"); | 1 description("A copy of the corresponding W3C-SVG-1.1 test, which dumps the anima
tion at certain times"); |
2 embedSVGTestCase("../W3C-SVG-1.1/animate-elem-07-t.svg"); | 2 embedSVGTestCase("../W3C-SVG-1.1/animate-elem-07-t.svg"); |
3 | 3 |
4 // Setup animation test | 4 // Setup animation test |
5 function sample1() { | 5 function sample1() { |
6 expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-15",
"-43"); | 6 expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-15"
, "-43"); |
7 } | 7 } |
8 | 8 |
9 function sample2() { | 9 function sample2() { |
10 expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-38.5
", "-30"); | 10 expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-38.
5", "-30"); |
11 } | 11 } |
12 | 12 |
13 function sample3() { | 13 function sample3() { |
14 expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-65",
"-33"); | 14 expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-65"
, "-33"); |
15 } | 15 } |
16 | 16 |
17 function executeTest() { | 17 function executeTest() { |
18 path = rootSVGElement.ownerDocument.getElementsByTagName("path")[1]; | 18 path = rootSVGElement.ownerDocument.getElementsByTagName("path")[1]; |
19 | 19 |
20 const expectedValues = [ | 20 const expectedValues = [ |
21 // [animationId, time, sampleCallback] | 21 // [animationId, time, sampleCallback] |
22 ["an1", 0.0, sample1], | 22 ["an1", 0.0, sample1], |
23 ["an1", 3.0, sample2], | 23 ["an1", 3.0, sample2], |
24 ["an1", 6.0, sample3], | 24 ["an1", 6.0, sample3], |
25 ["an1", 60.0, sample3] | 25 ["an1", 60.0, sample3] |
26 ]; | 26 ]; |
27 | 27 |
28 runAnimationTest(expectedValues); | 28 runAnimationTest(expectedValues); |
29 } | 29 } |
30 | 30 |
31 window.animationStartsImmediately = true; | 31 window.animationStartsImmediately = true; |
32 var successfullyParsed = true; | 32 var successfullyParsed = true; |
OLD | NEW |