OLD | NEW |
(Empty) | |
| 1 description("Test for animation freeze when repeatDur is not a multiple of dur")
; |
| 2 embedSVGTestCase("resources/animateMotion-fill-freeze.svg"); |
| 3 |
| 4 // Setup animation test |
| 5 function sample1() { |
| 6 shouldBeCloseEnough("rootSVGElement.getBBox().x", "0"); |
| 7 } |
| 8 |
| 9 function sample2() { |
| 10 shouldBeCloseEnough("rootSVGElement.getBBox().x", "50"); |
| 11 } |
| 12 |
| 13 function sample3() { |
| 14 shouldBeCloseEnough("rootSVGElement.getBBox().x", "100"); |
| 15 } |
| 16 |
| 17 function sample4() { |
| 18 shouldBeCloseEnough("rootSVGElement.getBBox().x", "100"); |
| 19 } |
| 20 |
| 21 function executeTest() { |
| 22 var rects = rootSVGElement.ownerDocument.getElementsByTagName("rect"); |
| 23 rect1 = rects[0]; |
| 24 |
| 25 const expectedValues = [ |
| 26 // [animationId, time, sampleCallback] |
| 27 ["anim", 0.0, sample1], |
| 28 ["anim", 2.0, sample2], |
| 29 ["anim", 4.0, sample3], |
| 30 ["anim", 6.0, sample4] |
| 31 ]; |
| 32 |
| 33 runAnimationTest(expectedValues); |
| 34 } |
| 35 |
| 36 window.animationStartsImmediately = true; |
| 37 var successfullyParsed = true; |
OLD | NEW |