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

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: fixed nits 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..48c6e67c389ab1cccd2e765db0d0aa9fae5be212
--- /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 with setOrientToAngle");
fs 2016/02/22 11:43:31 Maybe more descriptive as "getAttribute('orient')
Shanmuga Pandi 2016/02/22 11:50:09 Done.
+
+test(function() {
+ var markerElement = document.createElementNS("http://www.w3.org/2000/svg","marker");
+ markerElement.setOrientToAuto();
+ assert_equals(markerElement.getAttribute("orient"), "auto");
+}, "Tests with setOrientToAuto");
fs 2016/02/22 11:43:31 Ditto.
Shanmuga Pandi 2016/02/22 11:50:09 Done.
+</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