Index: LayoutTests/fast/svg/linear-gradient-default-length.html |
diff --git a/LayoutTests/fast/svg/linear-gradient-default-length.html b/LayoutTests/fast/svg/linear-gradient-default-length.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f3d9d3799caaaea3beb2cde7262f68a682b3a7b9 |
--- /dev/null |
+++ b/LayoutTests/fast/svg/linear-gradient-default-length.html |
@@ -0,0 +1,20 @@ |
+<!doctype html> |
+<title>SVGLinearGradientElement coordinate defaults</title> |
+<script src=../../resources/testharness.js></script> |
+<script src=../../resources/testharnessreport.js></script> |
+<svg> |
+ <linearGradient id="lg"/> |
+</svg> |
+<script> |
+function testLengthValue(result, expected, testcase) { |
+ test(function() { |
+ assert_equals(result, expected); |
+ }, "Testing " + document.title + " " + testcase); |
+} |
+ |
+var linearGradient = document.querySelector("#lg"); |
+testLengthValue(linearGradient.x1.baseVal.valueAsString, "0%", "x1"); |
+testLengthValue(linearGradient.x2.baseVal.valueAsString, "100%", "x2"); |
+testLengthValue(linearGradient.y1.baseVal.valueAsString, "0%", "y1"); |
+testLengthValue(linearGradient.y2.baseVal.valueAsString, "0%", "y2"); |
+</script> |