| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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' threw exception SyntaxError: Failed to set the
'valueAsString' property on 'SVGLength': The value provided ('1pX') is invalid.
. |
| 66 PASS length.valueAsString is "2px" | 66 PASS length.valueAsString is "2px" |
| 67 PASS length.value is 2 | 67 PASS length.value is 2 |
| 68 PASS length.valueInSpecifiedUnits is 2 | 68 PASS length.valueInSpecifiedUnits is 2 |
| 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.
. |
| 76 PASS length.valueAsString is "2px" |
| 77 PASS length.value is 2 |
| 78 PASS length.valueInSpecifiedUnits is 2 |
| 79 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
| 75 | 80 |
| 76 Check setting invalid 'value' arguments | 81 Check setting invalid 'value' arguments |
| 77 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.. |
| 78 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.. |
| 79 PASS length.value is 2 | 84 PASS length.value is 2 |
| 80 PASS length.valueInSpecifiedUnits is 2 | 85 PASS length.valueInSpecifiedUnits is 2 |
| 81 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 86 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
| 82 | 87 |
| 83 Check setting invalid 'valueInSpecifiedUnits' arguments | 88 Check setting invalid 'valueInSpecifiedUnits' arguments |
| 84 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.. |
| 85 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.. |
| 86 PASS length.value is 2 | 91 PASS length.value is 2 |
| 87 PASS length.valueInSpecifiedUnits is 2 | 92 PASS length.valueInSpecifiedUnits is 2 |
| 88 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 93 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
| 89 PASS successfullyParsed is true | 94 PASS successfullyParsed is true |
| 90 | 95 |
| 91 TEST COMPLETE | 96 TEST COMPLETE |
| 92 | 97 |
| OLD | NEW |