OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src=../../resources/testharness.js></script> |
| 3 <script src=../../resources/testharnessreport.js></script> |
| 4 <script> |
| 5 test(function() { |
| 6 var specularElement = document.createElementNS("http://www.w3.org/2000/svg",
"feSpecularLighting"); |
| 7 specularElement.setAttribute("kernelUnitLength", "3 4"); |
| 8 assert_equals(specularElement.getAttribute('kernelUnitLength'), "3 4"); |
| 9 assert_equals(specularElement.kernelUnitLengthX.baseVal, 3); |
| 10 assert_equals(specularElement.kernelUnitLengthY.baseVal, 4); |
| 11 specularElement.kernelUnitLengthX.baseVal = 5; |
| 12 specularElement.kernelUnitLengthY.baseVal = 10; |
| 13 assert_equals(specularElement.kernelUnitLengthX.baseVal, 5); |
| 14 assert_equals(specularElement.kernelUnitLengthY.baseVal, 10); |
| 15 assert_equals(specularElement.getAttribute('kernelUnitLength'), "5 10"); |
| 16 }, 'tests of the |kernelUnitLength| attribute of the SVGFESpecularLightingElemen
t object'); |
| 17 </script> |
OLD | NEW |