OLD | NEW |
(Empty) | |
| 1 description("Test the behavior of one discard applied on another discard"); |
| 2 embedSVGTestCase("resources/discard-on-discard.svg"); |
| 3 |
| 4 // Setup animation test |
| 5 function sample1() { |
| 6 expectFillColor(rect1, 255, 0, 0); |
| 7 } |
| 8 |
| 9 function sample2() { |
| 10 expectFillColor(rect1, 0, 255, 0); |
| 11 } |
| 12 |
| 13 function executeTest() { |
| 14 var rects = rootSVGElement.ownerDocument.getElementsByTagName("rect"); |
| 15 rect1 = rects[0]; |
| 16 |
| 17 const expectedValues = [ |
| 18 // [animationId, time, sampleCallback] |
| 19 ["anim", 0.0, sample1], |
| 20 ["anim", 0.01, sample1], |
| 21 ["anim", 2.0, sample2], |
| 22 ["anim", 2.01, sample2], |
| 23 ["anim", 3.0, sample2], |
| 24 ["anim", 3.01, sample2] |
| 25 ]; |
| 26 |
| 27 runAnimationTest(expectedValues); |
| 28 } |
| 29 |
| 30 window.animationStartsImmediately = true; |
| 31 var successfullyParsed = true; |
OLD | NEW |