Index: LayoutTests/svg/dom/SVGFESpecularLightingElement-svgdom-kernelUnitLength.html |
diff --git a/LayoutTests/svg/dom/SVGFESpecularLightingElement-svgdom-kernelUnitLength.html b/LayoutTests/svg/dom/SVGFESpecularLightingElement-svgdom-kernelUnitLength.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..58653ccd32af05917f7d549020eb7fb625d3c5da |
--- /dev/null |
+++ b/LayoutTests/svg/dom/SVGFESpecularLightingElement-svgdom-kernelUnitLength.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<script src=../../resources/testharness.js></script> |
+<script src=../../resources/testharnessreport.js></script> |
+<script> |
+test(function() { |
+ var specularElement = document.createElementNS("http://www.w3.org/2000/svg", "feSpecularLighting"); |
+ specularElement.setAttribute("kernelUnitLength", "3 4"); |
+ assert_equals(specularElement.getAttribute('kernelUnitLength'), "3 4"); |
+ assert_equals(specularElement.kernelUnitLengthX.baseVal, 3); |
+ assert_equals(specularElement.kernelUnitLengthY.baseVal, 4); |
+ specularElement.kernelUnitLengthX.baseVal = 5; |
+ specularElement.kernelUnitLengthY.baseVal = 10; |
+ assert_equals(specularElement.kernelUnitLengthX.baseVal, 5); |
+ assert_equals(specularElement.kernelUnitLengthY.baseVal, 10); |
+ assert_equals(specularElement.getAttribute('kernelUnitLength'), "5 10"); |
+}, 'tests of the |kernelUnitLength| attribute of the SVGFESpecularLightingElement object'); |
+</script> |