Index: LayoutTests/svg/dynamic-updates/script-tests/SVGFESpotLightElement-dom-x-attr.js |
diff --git a/LayoutTests/svg/dynamic-updates/script-tests/SVGFESpotLightElement-dom-x-attr.js b/LayoutTests/svg/dynamic-updates/script-tests/SVGFESpotLightElement-dom-x-attr.js |
index 4d94e57f820ba0be8fc661261407b1dc1a295952..3fd1b8cbe849b98647baef7c94116756bec9174b 100644 |
--- a/LayoutTests/svg/dynamic-updates/script-tests/SVGFESpotLightElement-dom-x-attr.js |
+++ b/LayoutTests/svg/dynamic-updates/script-tests/SVGFESpotLightElement-dom-x-attr.js |
@@ -5,11 +5,11 @@ description("Tests dynamic updates of the 'x' attribute of the SVGFESpotLightEle |
createSVGTestCase(); |
var spotLightElement = createSVGElement("feSpotLight"); |
-spotLightElement.setAttribute("x", "0"); |
-spotLightElement.setAttribute("y", "0"); |
+spotLightElement.setAttribute("x", "-30"); |
+spotLightElement.setAttribute("y", "-30"); |
spotLightElement.setAttribute("z", "100"); |
-spotLightElement.setAttribute("pointsAtX", "113"); |
-spotLightElement.setAttribute("pointsAtY", "100"); |
+spotLightElement.setAttribute("pointsAtX", "83"); |
+spotLightElement.setAttribute("pointsAtY", "70"); |
spotLightElement.setAttribute("pointsAtZ", "0"); |
spotLightElement.setAttribute("specularExponent", "1"); |
spotLightElement.setAttribute("limitingConeAngle", "15"); |
@@ -38,11 +38,11 @@ rectElement.setAttribute("height", "200"); |
rectElement.setAttribute("filter", "url(#myFilter)"); |
rootSVGElement.appendChild(rectElement); |
-shouldBeEqualToString("spotLightElement.getAttribute('x')", "0"); |
+shouldBeEqualToString("spotLightElement.getAttribute('x')", "-30"); |
function repaintTest() { |
- spotLightElement.setAttribute("x", "113"); |
- shouldBeEqualToString("spotLightElement.getAttribute('x')", "113"); |
+ spotLightElement.setAttribute("x", "83"); |
+ shouldBeEqualToString("spotLightElement.getAttribute('x')", "83"); |
completeTest(); |
} |