Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: LayoutTests/svg/animations/animate-marker-orient-from-auto-to-angle.html

Issue 672853002: Implement "auto -> angle" animation on <marker> orient attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/animations/animate-marker-orient-from-auto-to-angle-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/svg/animations/animate-marker-orient-from-auto-to-angle-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698