OLD | NEW |
| (Empty) |
1 This test checks the SVGAnimatedNumber API - utilizing the surfaceScale property
of SVGFESpecularLightingElement | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Check initial surfaceScale value | |
8 PASS feSpecularLightingElement.surfaceScale.toString() is "[object SVGAnimatedNu
mber]" | |
9 PASS typeof(feSpecularLightingElement.surfaceScale.baseVal) is "number" | |
10 PASS feSpecularLightingElement.surfaceScale.baseVal is 1 | |
11 | |
12 Check that integers are static, caching value in a local variable and modifying
it, should have no effect | |
13 PASS numRef is 100 | |
14 PASS feSpecularLightingElement.surfaceScale.baseVal is 1 | |
15 | |
16 Check assigning various valid and invalid values | |
17 PASS feSpecularLightingElement.surfaceScale.baseVal = -1 is -1 | |
18 PASS feSpecularLightingElement.surfaceScale.baseVal = 300 is 300 | |
19 PASS feSpecularLightingElement.surfaceScale.baseVal = 'aString' threw exception
TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The prov
ided float value is non-finite.. | |
20 PASS feSpecularLightingElement.surfaceScale.baseVal is 300 | |
21 PASS feSpecularLightingElement.surfaceScale.baseVal = 0 is 0 | |
22 PASS feSpecularLightingElement.surfaceScale.baseVal = NaN threw exception TypeEr
ror: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided f
loat value is non-finite.. | |
23 PASS feSpecularLightingElement.surfaceScale.baseVal is 0 | |
24 PASS feSpecularLightingElement.surfaceScale.baseVal = Infinity threw exception T
ypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provi
ded float value is non-finite.. | |
25 PASS feSpecularLightingElement.surfaceScale.baseVal is 0 | |
26 PASS feSpecularLightingElement.surfaceScale.baseVal = feSpecularLightingElement
threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedN
umber': The provided float value is non-finite.. | |
27 PASS feSpecularLightingElement.surfaceScale.baseVal is 0 | |
28 PASS feSpecularLightingElement.surfaceScale.baseVal = 300 is 300 | |
29 | |
30 Check that the surfaceScale value remained 300 | |
31 PASS feSpecularLightingElement.surfaceScale.baseVal is 300 | |
32 PASS successfullyParsed is true | |
33 | |
34 TEST COMPLETE | |
35 | |
OLD | NEW |