OLD | NEW |
| (Empty) |
1 This test checks the use of SVGAnimatedEnumeration within SVGTextContentElement | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Check initial 'lengthAdjust' value | |
8 PASS textContentElement.lengthAdjust.toString() is "[object SVGAnimatedEnumerati
on]" | |
9 PASS typeof(textContentElement.lengthAdjust.baseVal) is "number" | |
10 PASS textContentElement.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJU
ST_SPACING | |
11 | |
12 Switch to 'spacingAndGlyphs' | |
13 PASS textContentElement.lengthAdjust.baseVal = SVGTextContentElement.LENGTHADJUS
T_SPACINGANDGLYPHS is SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS | |
14 PASS textContentElement.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJU
ST_SPACINGANDGLYPHS | |
15 PASS textContentElement.getAttribute('lengthAdjust') is "spacingAndGlyphs" | |
16 | |
17 Try setting invalid values | |
18 PASS textContentElement.lengthAdjust.baseVal = 3 threw exception TypeError: Fail
ed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration va
lue provided (3) is larger than the largest allowed value (2).. | |
19 PASS textContentElement.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJU
ST_SPACINGANDGLYPHS | |
20 PASS textContentElement.getAttribute('lengthAdjust') is "spacingAndGlyphs" | |
21 PASS textContentElement.lengthAdjust.baseVal = -1 threw exception TypeError: Fai
led to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration v
alue provided (65535) is larger than the largest allowed value (2).. | |
22 PASS textContentElement.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJU
ST_SPACINGANDGLYPHS | |
23 PASS textContentElement.getAttribute('lengthAdjust') is "spacingAndGlyphs" | |
24 PASS textContentElement.lengthAdjust.baseVal = 0 threw exception TypeError: Fail
ed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration va
lue provided is 0, which is not settable.. | |
25 PASS textContentElement.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJU
ST_SPACINGANDGLYPHS | |
26 PASS textContentElement.getAttribute('lengthAdjust') is "spacingAndGlyphs" | |
27 | |
28 Switch to 'spacing' | |
29 PASS textContentElement.lengthAdjust.baseVal = SVGTextContentElement.LENGTHADJUS
T_SPACING is SVGTextContentElement.LENGTHADJUST_SPACING | |
30 PASS textContentElement.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJU
ST_SPACING | |
31 PASS textContentElement.getAttribute('lengthAdjust') is "spacing" | |
32 PASS successfullyParsed is true | |
33 | |
34 TEST COMPLETE | |
35 | |
OLD | NEW |