| OLD | NEW |
| 1 This test checks the SVGAngle API | 1 This test checks the SVGAngle 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 angle values | 7 Check initial angle values |
| 8 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 8 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
| 9 PASS angle.valueAsString is "0" | 9 PASS angle.valueAsString is "0" |
| 10 PASS angle.value is 0 | 10 PASS angle.value is 0 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 PASS angle.valueAsString = '5Rad' threw exception SyntaxError: Failed to set the
'valueAsString' property on 'SVGAngle': The value provided ('5Rad') is invalid.
. | 113 PASS angle.valueAsString = '5Rad' threw exception SyntaxError: Failed to set the
'valueAsString' property on 'SVGAngle': The value provided ('5Rad') is invalid.
. |
| 114 PASS angle.valueAsString is "0" | 114 PASS angle.valueAsString is "0" |
| 115 PASS angle.value is 0 | 115 PASS angle.value is 0 |
| 116 PASS angle.valueInSpecifiedUnits is 0 | 116 PASS angle.valueInSpecifiedUnits is 0 |
| 117 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 117 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
| 118 PASS angle.valueAsString = ',5 rad' threw exception SyntaxError: Failed to set t
he 'valueAsString' property on 'SVGAngle': The value provided (',5 rad') is inva
lid.. | 118 PASS angle.valueAsString = ',5 rad' threw exception SyntaxError: Failed to set t
he 'valueAsString' property on 'SVGAngle': The value provided (',5 rad') is inva
lid.. |
| 119 PASS angle.valueAsString is "0" | 119 PASS angle.valueAsString is "0" |
| 120 PASS angle.value is 0 | 120 PASS angle.value is 0 |
| 121 PASS angle.valueInSpecifiedUnits is 0 | 121 PASS angle.valueInSpecifiedUnits is 0 |
| 122 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 122 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
| 123 PASS angle.valueAsString = null threw exception SyntaxError: Failed to set the '
valueAsString' property on 'SVGAngle': The value provided ('null') is invalid.. |
| 124 PASS angle.valueAsString is "0" |
| 125 PASS angle.value is 0 |
| 126 PASS angle.valueInSpecifiedUnits is 0 |
| 127 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
| 123 | 128 |
| 124 Check setting invalid 'valueInSpecifiedUnits' arguments | 129 Check setting invalid 'valueInSpecifiedUnits' arguments |
| 125 PASS angle.valueInSpecifiedUnits = 'test' threw exception TypeError: Failed to s
et the 'valueInSpecifiedUnits' property on 'SVGAngle': The provided float value
is non-finite.. | 130 PASS angle.valueInSpecifiedUnits = 'test' threw exception TypeError: Failed to s
et the 'valueInSpecifiedUnits' property on 'SVGAngle': The provided float value
is non-finite.. |
| 126 PASS angle.value is 0 | 131 PASS angle.value is 0 |
| 127 PASS angle.valueInSpecifiedUnits is 0 | 132 PASS angle.valueInSpecifiedUnits is 0 |
| 128 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 133 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
| 129 PASS angle.valueInSpecifiedUnits = 0 is 0 | 134 PASS angle.valueInSpecifiedUnits = 0 is 0 |
| 130 PASS angle.valueInSpecifiedUnits = angle threw exception TypeError: Failed to se
t the 'valueInSpecifiedUnits' property on 'SVGAngle': The provided float value i
s non-finite.. | 135 PASS angle.valueInSpecifiedUnits = angle threw exception TypeError: Failed to se
t the 'valueInSpecifiedUnits' property on 'SVGAngle': The provided float value i
s non-finite.. |
| 131 PASS angle.value is 0 | 136 PASS angle.value is 0 |
| 132 PASS angle.valueInSpecifiedUnits = NaN threw exception TypeError: Failed to set
the 'valueInSpecifiedUnits' property on 'SVGAngle': The provided float value is
non-finite.. | 137 PASS angle.valueInSpecifiedUnits = NaN threw exception TypeError: Failed to set
the 'valueInSpecifiedUnits' property on 'SVGAngle': The provided float value is
non-finite.. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 Now convert the RAD value into a DEG value, and assure that all properties have
been synchronized | 200 Now convert the RAD value into a DEG value, and assure that all properties have
been synchronized |
| 196 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) is undefined. | 201 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) is undefined. |
| 197 PASS angle.value.toFixed(1) is "180.0" | 202 PASS angle.value.toFixed(1) is "180.0" |
| 198 PASS angle.valueInSpecifiedUnits.toFixed(1) is "180.0" | 203 PASS angle.valueInSpecifiedUnits.toFixed(1) is "180.0" |
| 199 PASS angle.valueAsString is "180deg" | 204 PASS angle.valueAsString is "180deg" |
| 200 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG | 205 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG |
| 201 PASS successfullyParsed is true | 206 PASS successfullyParsed is true |
| 202 | 207 |
| 203 TEST COMPLETE | 208 TEST COMPLETE |
| 204 | 209 |
| OLD | NEW |