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> |