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

Unified Diff: LayoutTests/svg/animations/script-tests/animate-marker-orient-from-auto-to-auto-start-reverse.js

Issue 539833004: [SVG2] Add support for marker orient="auto-start-reverse". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add dump-render-tree output + fix nit and test Created 6 years, 3 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
Index: LayoutTests/svg/animations/script-tests/animate-marker-orient-from-auto-to-auto-start-reverse.js
diff --git a/LayoutTests/svg/animations/script-tests/animate-marker-orient-from-angle-to-auto.js b/LayoutTests/svg/animations/script-tests/animate-marker-orient-from-auto-to-auto-start-reverse.js
similarity index 91%
copy from LayoutTests/svg/animations/script-tests/animate-marker-orient-from-angle-to-auto.js
copy to LayoutTests/svg/animations/script-tests/animate-marker-orient-from-auto-to-auto-start-reverse.js
index e4b91c30f00f1300ab75514787c4df86c231ce5a..58b36703486c31f8279455588bfbea3a9b629e9c 100644
--- a/LayoutTests/svg/animations/script-tests/animate-marker-orient-from-angle-to-auto.js
+++ b/LayoutTests/svg/animations/script-tests/animate-marker-orient-from-auto-to-auto-start-reverse.js
@@ -1,4 +1,4 @@
-description("Animate SVGMarkerElement orientAttr from an angle to auto");
+description("Animate SVGMarkerElement orientAttr from auto to auto-start-reverse");
createSVGTestCase();
// Setup test document
@@ -38,8 +38,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", "auto-start-reverse");
animate1.setAttribute("fill", "freeze");
marker.appendChild(animate1);
@@ -53,10 +53,10 @@ 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");
}
@@ -64,7 +64,7 @@ function sample3() {
shouldBeCloseEnough("marker.orientAngle.animVal.value", "0");
shouldBe("marker.orientAngle.baseVal.value", "0");
- shouldBe("marker.orientType.animVal", "SVGMarkerElement.SVG_MARKER_ORIENT_AUTO");
+ shouldBe("marker.orientType.animVal", "SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN");
shouldBe("marker.orientType.baseVal", "SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE");
}

Powered by Google App Engine
This is Rietveld 408576698