OLD | NEW |
1 This test checks the SVGLength API | 1 This test checks the SVGLength API |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 | 6 |
7 Check initial length values | 7 Check initial length values |
8 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_NUMBER | 8 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_NUMBER |
9 PASS length.value is 0 | 9 PASS length.value is 0 |
10 PASS length.valueInSpecifiedUnits is 0 | 10 PASS length.valueInSpecifiedUnits is 0 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 PASS length.value is 2 | 55 PASS length.value is 2 |
56 PASS length.valueInSpecifiedUnits is 2 | 56 PASS length.valueInSpecifiedUnits is 2 |
57 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 57 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
58 | 58 |
59 Check setting invalid 'valueAsString' arguments | 59 Check setting invalid 'valueAsString' arguments |
60 PASS length.valueAsString = '10deg' threw exception SyntaxError: Failed to set t
he 'valueAsString' property on 'SVGLength': The value provided ('10deg') is inva
lid.. | 60 PASS length.valueAsString = '10deg' threw exception SyntaxError: Failed to set t
he 'valueAsString' property on 'SVGLength': The value provided ('10deg') is inva
lid.. |
61 PASS length.valueAsString is "2px" | 61 PASS length.valueAsString is "2px" |
62 PASS length.value is 2 | 62 PASS length.value is 2 |
63 PASS length.valueInSpecifiedUnits is 2 | 63 PASS length.valueInSpecifiedUnits is 2 |
64 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 64 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
65 PASS length.valueAsString = '1pX' threw exception SyntaxError: Failed to set the
'valueAsString' property on 'SVGLength': The value provided ('1pX') is invalid.
. | 65 PASS length.valueAsString = '1pX' did not throw exception. |
66 PASS length.valueAsString is "2px" | 66 PASS length.valueAsString is "1px" |
67 PASS length.value is 2 | 67 PASS length.value is 1 |
68 PASS length.valueInSpecifiedUnits is 2 | 68 PASS length.valueInSpecifiedUnits is 1 |
69 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 69 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
70 PASS length.valueAsString = ',5 em' threw exception SyntaxError: Failed to set t
he 'valueAsString' property on 'SVGLength': The value provided (',5 em') is inva
lid.. | 70 PASS length.valueAsString = ',5 em' threw exception SyntaxError: Failed to set t
he 'valueAsString' property on 'SVGLength': The value provided (',5 em') is inva
lid.. |
71 PASS length.valueAsString is "2px" | 71 PASS length.valueAsString is "2px" |
72 PASS length.value is 2 | 72 PASS length.value is 2 |
73 PASS length.valueInSpecifiedUnits is 2 | 73 PASS length.valueInSpecifiedUnits is 2 |
74 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 74 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
75 PASS length.valueAsString = null threw exception SyntaxError: Failed to set the
'valueAsString' property on 'SVGLength': The value provided ('null') is invalid.
. | 75 PASS length.valueAsString = null threw exception SyntaxError: Failed to set the
'valueAsString' property on 'SVGLength': The value provided ('null') is invalid.
. |
76 PASS length.valueAsString is "2px" | 76 PASS length.valueAsString is "2px" |
77 PASS length.value is 2 | 77 PASS length.value is 2 |
78 PASS length.valueInSpecifiedUnits is 2 | 78 PASS length.valueInSpecifiedUnits is 2 |
79 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 79 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
80 | 80 |
81 Check setting invalid 'value' arguments | 81 Check setting invalid 'value' arguments |
82 PASS length.value = NaN threw exception TypeError: Failed to set the 'value' pro
perty on 'SVGLength': The provided float value is non-finite.. | 82 PASS length.value = NaN threw exception TypeError: Failed to set the 'value' pro
perty on 'SVGLength': The provided float value is non-finite.. |
83 PASS length.value = Infinity threw exception TypeError: Failed to set the 'value
' property on 'SVGLength': The provided float value is non-finite.. | 83 PASS length.value = Infinity threw exception TypeError: Failed to set the 'value
' property on 'SVGLength': The provided float value is non-finite.. |
84 PASS length.value is 2 | 84 PASS length.value is 2 |
85 PASS length.valueInSpecifiedUnits is 2 | 85 PASS length.valueInSpecifiedUnits is 2 |
86 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 86 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
87 | 87 |
88 Check setting invalid 'valueInSpecifiedUnits' arguments | 88 Check setting invalid 'valueInSpecifiedUnits' arguments |
89 PASS length.valueInSpecifiedUnits = NaN threw exception TypeError: Failed to set
the 'valueInSpecifiedUnits' property on 'SVGLength': The provided float value i
s non-finite.. | 89 PASS length.valueInSpecifiedUnits = NaN threw exception TypeError: Failed to set
the 'valueInSpecifiedUnits' property on 'SVGLength': The provided float value i
s non-finite.. |
90 PASS length.valueInSpecifiedUnits = Infinity threw exception TypeError: Failed t
o set the 'valueInSpecifiedUnits' property on 'SVGLength': The provided float va
lue is non-finite.. | 90 PASS length.valueInSpecifiedUnits = Infinity threw exception TypeError: Failed t
o set the 'valueInSpecifiedUnits' property on 'SVGLength': The provided float va
lue is non-finite.. |
91 PASS length.value is 2 | 91 PASS length.value is 2 |
92 PASS length.valueInSpecifiedUnits is 2 | 92 PASS length.valueInSpecifiedUnits is 2 |
93 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 93 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
94 PASS successfullyParsed is true | 94 PASS successfullyParsed is true |
95 | 95 |
96 TEST COMPLETE | 96 TEST COMPLETE |
97 | 97 |
OLD | NEW |