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

Unified Diff: third_party/WebKit/LayoutTests/svg/markers/marker-orientation-set.html

Issue 1699893003: setOrientTo{Auto|Angle} should reflect on orient attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Align with review comments Created 4 years, 10 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 | third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/markers/marker-orientation-set.html
diff --git a/third_party/WebKit/LayoutTests/svg/markers/marker-orientation-set.html b/third_party/WebKit/LayoutTests/svg/markers/marker-orientation-set.html
new file mode 100644
index 0000000000000000000000000000000000000000..da85580c30d5be6519a4d673116c4a5d99d46210
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/markers/marker-orientation-set.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ var svgElement = document.createElementNS("http://www.w3.org/2000/svg","svg");
+ var markerElement = document.createElementNS("http://www.w3.org/2000/svg","marker");
+ var svgAngle = svgElement.createSVGAngle();
+ svgAngle.value = 10;
+ markerElement.setOrientToAngle(svgAngle);
+ assert_equals(markerElement.getAttribute("orient"), "10");
+}, "Tests getAttribute('orient') value after setOrientToAngle");
+
+test(function() {
+ var markerElement = document.createElementNS("http://www.w3.org/2000/svg","marker");
+ markerElement.setOrientToAuto();
+ assert_equals(markerElement.getAttribute("orient"), "auto");
+}, "Tests getAttribute('orient') value after setOrientToAuto");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698