| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| <script src="../dynamic-updates/resources/SVGTestCase.js"></script> |
| <script src="resources/SVGAnimationTestCase.js"></script> |
| <body onload="runSMILTest()"> |
| <h1>SVG 1.1 dynamic animation tests</h1> |
| description("This tests values animation with just a single entry"); |
| embedSVGTestCase("resources/single-values-animation.svg"); |
| shouldBeCloseEnough("rect.width.animVal.value", "10"); |
| shouldBe("rect.width.baseVal.value", "10"); |
| shouldBeCloseEnough("rect.width.animVal.value", "100"); |
| shouldBe("rect.width.baseVal.value", "10"); |
| rect = rootSVGElement.ownerDocument.getElementsByTagName("rect")[0]; |
| // [animationId, time, sampleCallback] |
| runAnimationTest(expectedValues); |
| window.animationStartsImmediately = true; |
| var successfullyParsed = true; |