Index: third_party/WebKit/LayoutTests/svg/dom/SVGLength-value-setter.html |
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGLength-value-setter.html b/third_party/WebKit/LayoutTests/svg/dom/SVGLength-value-setter.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1e6f4706f207c5b87fcbf75a7ed36ffd23db0c16 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/dom/SVGLength-value-setter.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<title>Tests SVGLength.value setter</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<svg width="1" height="1" visibility="hidden"> |
+</svg> |
+<script> |
+test(function() { |
+ var svgElement = document.querySelector("svg"); |
+ svgElement.setAttribute("width", "10em"); |
+ assert_equals(svgElement.width.baseVal.unitType, SVGLength.SVG_LENGTHTYPE_EMS); |
+ svgElement.width.baseVal.value = 100; |
+ assert_equals(svgElement.width.baseVal.value, 100); |
+ assert_equals(svgElement.width.baseVal.unitType, SVGLength.SVG_LENGTHTYPE_NUMBER); |
+}, "Tests SVGLength.value setter"); |
+</script> |