| Index: LayoutTests/svg/animations/animate-marker-orient-from-auto-to-angle.html
|
| diff --git a/LayoutTests/svg/animations/script-tests/animate-marker-orient-from-angle-to-auto.js b/LayoutTests/svg/animations/animate-marker-orient-from-auto-to-angle.html
|
| similarity index 87%
|
| copy from LayoutTests/svg/animations/script-tests/animate-marker-orient-from-angle-to-auto.js
|
| copy to LayoutTests/svg/animations/animate-marker-orient-from-auto-to-angle.html
|
| index e4b91c30f00f1300ab75514787c4df86c231ce5a..0c4a1459d5b41b386268a35a5713ac0c0df59da7 100644
|
| --- a/LayoutTests/svg/animations/script-tests/animate-marker-orient-from-angle-to-auto.js
|
| +++ b/LayoutTests/svg/animations/animate-marker-orient-from-auto-to-angle.html
|
| @@ -1,4 +1,10 @@
|
| -description("Animate SVGMarkerElement orientAttr from an angle to auto");
|
| +<script src="../../resources/js-test.js"></script>
|
| +<script src="resources/SVGTestCase.js"></script>
|
| +<script src="resources/SVGAnimationTestCase.js"></script>
|
| +<body onload="runSMILTest()">
|
| +<h1>SVG 1.1 dynamic animation tests</h1>
|
| +<script>
|
| +description("Animate SVGMarkerElement orientAttr from auto to an angle");
|
| createSVGTestCase();
|
|
|
| // Setup test document
|
| @@ -38,8 +44,8 @@ animate1.setAttribute("id", "animation");
|
| animate1.setAttribute("attributeName", "orient");
|
| animate1.setAttribute("begin", "path.click");
|
| animate1.setAttribute("dur", "4s");
|
| -animate1.setAttribute("from", "90deg");
|
| -animate1.setAttribute("to", "auto");
|
| +animate1.setAttribute("from", "auto");
|
| +animate1.setAttribute("to", "90deg");
|
| animate1.setAttribute("fill", "freeze");
|
| marker.appendChild(animate1);
|
|
|
| @@ -53,18 +59,18 @@ function sample1() {
|
| }
|
|
|
| function sample2() {
|
| - shouldBeCloseEnough("marker.orientAngle.animVal.value", "90");
|
| + shouldBeCloseEnough("marker.orientAngle.animVal.value", "0");
|
| shouldBe("marker.orientAngle.baseVal.value", "0");
|
|
|
| - shouldBe("marker.orientType.animVal", "SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE");
|
| + shouldBe("marker.orientType.animVal", "SVGMarkerElement.SVG_MARKER_ORIENT_AUTO");
|
| shouldBe("marker.orientType.baseVal", "SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE");
|
| }
|
|
|
| function sample3() {
|
| - shouldBeCloseEnough("marker.orientAngle.animVal.value", "0");
|
| + shouldBeCloseEnough("marker.orientAngle.animVal.value", "90");
|
| shouldBe("marker.orientAngle.baseVal.value", "0");
|
|
|
| - shouldBe("marker.orientType.animVal", "SVGMarkerElement.SVG_MARKER_ORIENT_AUTO");
|
| + shouldBe("marker.orientType.animVal", "SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE");
|
| shouldBe("marker.orientType.baseVal", "SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE");
|
| }
|
|
|
| @@ -81,5 +87,5 @@ function executeTest() {
|
|
|
| runAnimationTest(expectedValues);
|
| }
|
| -
|
| -var successfullyParsed = true;
|
| +</script>
|
| +</body>
|
|
|