OLD | NEW |
1 // [Name] SVGFESpotLightElement-svgdom-pointsAtZ-prop.js | 1 // [Name] SVGFESpotLightElement-svgdom-pointsAtZ-prop.js |
2 // [Expected rendering result] A shining cone (performed by diffuse lighting) -
and a series of PASS messages | 2 // [Expected rendering result] A shining cone (performed by diffuse lighting) -
and a series of PASS messages |
3 | 3 |
4 description("Tests dynamic updates of the 'pointsAtZ' property of the SVGFESpotL
ightElement object") | 4 description("Tests dynamic updates of the 'pointsAtZ' property of the SVGFESpotL
ightElement object") |
5 createSVGTestCase(); | 5 createSVGTestCase(); |
6 | 6 |
7 var spotLightElement = createSVGElement("feSpotLight"); | 7 var spotLightElement = createSVGElement("feSpotLight"); |
8 spotLightElement.setAttribute("x", "113"); | 8 spotLightElement.setAttribute("x", "83"); |
9 spotLightElement.setAttribute("y", "0"); | 9 spotLightElement.setAttribute("y", "-30"); |
10 spotLightElement.setAttribute("z", "100"); | 10 spotLightElement.setAttribute("z", "100"); |
11 spotLightElement.setAttribute("pointsAtX", "113"); | 11 spotLightElement.setAttribute("pointsAtX", "83"); |
12 spotLightElement.setAttribute("pointsAtY", "100"); | 12 spotLightElement.setAttribute("pointsAtY", "70"); |
13 spotLightElement.setAttribute("pointsAtZ", "100"); | 13 spotLightElement.setAttribute("pointsAtZ", "100"); |
14 spotLightElement.setAttribute("specularExponent", "1"); | 14 spotLightElement.setAttribute("specularExponent", "1"); |
15 spotLightElement.setAttribute("limitingConeAngle", "15"); | 15 spotLightElement.setAttribute("limitingConeAngle", "15"); |
16 | 16 |
17 var gradientElement = createSVGElement("feDiffuseLighting"); | 17 var gradientElement = createSVGElement("feDiffuseLighting"); |
18 gradientElement.setAttribute("surfaceScale", "1"); | 18 gradientElement.setAttribute("surfaceScale", "1"); |
19 gradientElement.setAttribute("diffuseConstant", "1"); | 19 gradientElement.setAttribute("diffuseConstant", "1"); |
20 gradientElement.setAttribute("lighting-color", "aqua"); | 20 gradientElement.setAttribute("lighting-color", "aqua"); |
21 gradientElement.appendChild(spotLightElement); | 21 gradientElement.appendChild(spotLightElement); |
22 | 22 |
(...skipping 19 matching lines...) Expand all Loading... |
42 | 42 |
43 function repaintTest() { | 43 function repaintTest() { |
44 spotLightElement.pointsAtZ.baseVal = 0; | 44 spotLightElement.pointsAtZ.baseVal = 0; |
45 shouldBe("spotLightElement.pointsAtZ.baseVal", "0"); | 45 shouldBe("spotLightElement.pointsAtZ.baseVal", "0"); |
46 | 46 |
47 completeTest(); | 47 completeTest(); |
48 } | 48 } |
49 | 49 |
50 | 50 |
51 var successfullyParsed = true; | 51 var successfullyParsed = true; |
OLD | NEW |