| 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 |
| 11 PASS angle.valueInSpecifiedUnits is 0 | 11 PASS angle.valueInSpecifiedUnits is 0 |
| 12 | 12 |
| 13 Check invalid arguments for 'convertToSpecifiedUnits' | 13 Check invalid arguments for 'convertToSpecifiedUnits' |
| 14 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN) threw excepti
on NotSupportedError: The implementation did not support the requested type of o
bject or operation.. | 14 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN) threw excepti
on NotSupportedError: The implementation did not support the requested type of o
bject or operation.. |
| 15 PASS angle.convertToSpecifiedUnits(-1) threw exception NotSupportedError: The im
plementation did not support the requested type of object or operation.. | 15 PASS angle.convertToSpecifiedUnits(-1) threw exception NotSupportedError: The im
plementation did not support the requested type of object or operation.. |
| 16 PASS angle.convertToSpecifiedUnits(5) threw exception NotSupportedError: The imp
lementation did not support the requested type of object or operation.. | 16 PASS angle.convertToSpecifiedUnits(5) threw exception NotSupportedError: The imp
lementation did not support the requested type of object or operation.. |
| 17 PASS angle.convertToSpecifiedUnits('aString') threw exception NotSupportedError:
The implementation did not support the requested type of object or operation.. | 17 PASS angle.convertToSpecifiedUnits('aString') threw exception NotSupportedError:
The implementation did not support the requested type of object or operation.. |
| 18 PASS angle.convertToSpecifiedUnits(angle) threw exception NotSupportedError: The
implementation did not support the requested type of object or operation.. | 18 PASS angle.convertToSpecifiedUnits(angle) threw exception NotSupportedError: The
implementation did not support the requested type of object or operation.. |
| 19 PASS angle.convertToSpecifiedUnits(svgElement) threw exception NotSupportedError
: The implementation did not support the requested type of object or operation.. | 19 PASS angle.convertToSpecifiedUnits(svgElement) threw exception NotSupportedError
: The implementation did not support the requested type of object or operation.. |
| 20 PASS angle.convertToSpecifiedUnits() threw exception TypeError: Not enough argum
ents. | 20 PASS angle.convertToSpecifiedUnits() threw exception TypeError: Failed to execut
e 'convertToSpecifiedUnits' on 'SVGAngle': 1 argument required, but only 0 prese
nt.. |
| 21 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 21 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
| 22 | 22 |
| 23 Check valid arguments for 'convertToSpecifiedUnits', that should only modify the
'valueAsString' | 23 Check valid arguments for 'convertToSpecifiedUnits', that should only modify the
'valueAsString' |
| 24 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_RAD) is undefined. | 24 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_RAD) is undefined. |
| 25 PASS angle.valueAsString is "0rad" | 25 PASS angle.valueAsString is "0rad" |
| 26 PASS angle.value is 0 | 26 PASS angle.value is 0 |
| 27 PASS angle.valueInSpecifiedUnits is 0 | 27 PASS angle.valueInSpecifiedUnits is 0 |
| 28 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_RAD | 28 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_RAD |
| 29 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_GRAD) is undefined. | 29 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_GRAD) is undefined. |
| 30 PASS angle.valueAsString is "0grad" | 30 PASS angle.valueAsString is "0grad" |
| 31 PASS angle.value is 0 | 31 PASS angle.value is 0 |
| 32 PASS angle.valueInSpecifiedUnits is 0 | 32 PASS angle.valueInSpecifiedUnits is 0 |
| 33 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_GRAD | 33 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_GRAD |
| 34 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) is undefined. | 34 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) is undefined. |
| 35 PASS angle.valueAsString is "0deg" | 35 PASS angle.valueAsString is "0deg" |
| 36 PASS angle.value is 0 | 36 PASS angle.value is 0 |
| 37 PASS angle.valueInSpecifiedUnits is 0 | 37 PASS angle.valueInSpecifiedUnits is 0 |
| 38 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG | 38 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG |
| 39 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNSPECIFIED) is undefi
ned. | 39 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNSPECIFIED) is undefi
ned. |
| 40 PASS angle.valueAsString is "0" | 40 PASS angle.valueAsString is "0" |
| 41 PASS angle.value is 0 | 41 PASS angle.value is 0 |
| 42 PASS angle.valueInSpecifiedUnits is 0 | 42 PASS angle.valueInSpecifiedUnits is 0 |
| 43 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 43 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
| 44 | 44 |
| 45 Check invalid arguments for 'newValueSpecifiedUnits' | 45 Check invalid arguments for 'newValueSpecifiedUnits' |
| 46 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN, 50) threw exce
ption NotSupportedError: The implementation did not support the requested type o
f object or operation.. | 46 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN, 50) threw exce
ption NotSupportedError: The implementation did not support the requested type o
f object or operation.. |
| 47 PASS angle.newValueSpecifiedUnits(-1, 50) threw exception NotSupportedError: The
implementation did not support the requested type of object or operation.. | 47 PASS angle.newValueSpecifiedUnits(-1, 50) threw exception NotSupportedError: The
implementation did not support the requested type of object or operation.. |
| 48 PASS angle.newValueSpecifiedUnits(5, 50) threw exception NotSupportedError: The
implementation did not support the requested type of object or operation.. | 48 PASS angle.newValueSpecifiedUnits(5, 50) threw exception NotSupportedError: The
implementation did not support the requested type of object or operation.. |
| 49 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) threw exception Ty
peError: Not enough arguments. | 49 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) threw exception Ty
peError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': 2 arguments r
equired, but only 1 present.. |
| 50 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, 'aString') is unde
fined. | 50 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, 'aString') is unde
fined. |
| 51 PASS angle.value is NaN | 51 PASS angle.value is NaN |
| 52 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, 0) is undefined. | 52 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, 0) is undefined. |
| 53 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, angle) is undefine
d. | 53 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, angle) is undefine
d. |
| 54 PASS angle.value is NaN | 54 PASS angle.value is NaN |
| 55 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, svgElement) is und
efined. | 55 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, svgElement) is und
efined. |
| 56 PASS angle.value is NaN | 56 PASS angle.value is NaN |
| 57 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) threw exception Ty
peError: Not enough arguments. | 57 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) threw exception Ty
peError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': 2 arguments r
equired, but only 1 present.. |
| 58 PASS angle.newValueSpecifiedUnits('aString', 4) threw exception NotSupportedErro
r: The implementation did not support the requested type of object or operation.
. | 58 PASS angle.newValueSpecifiedUnits('aString', 4) threw exception NotSupportedErro
r: The implementation did not support the requested type of object or operation.
. |
| 59 PASS angle.newValueSpecifiedUnits(angle, 4) threw exception NotSupportedError: T
he implementation did not support the requested type of object or operation.. | 59 PASS angle.newValueSpecifiedUnits(angle, 4) threw exception NotSupportedError: T
he implementation did not support the requested type of object or operation.. |
| 60 PASS angle.newValueSpecifiedUnits(svgElement, 4) threw exception NotSupportedErr
or: The implementation did not support the requested type of object or operation
.. | 60 PASS angle.newValueSpecifiedUnits(svgElement, 4) threw exception NotSupportedErr
or: The implementation did not support the requested type of object or operation
.. |
| 61 PASS angle.newValueSpecifiedUnits('aString', 'aString') threw exception NotSuppo
rtedError: The implementation did not support the requested type of object or op
eration.. | 61 PASS angle.newValueSpecifiedUnits('aString', 'aString') threw exception NotSuppo
rtedError: The implementation did not support the requested type of object or op
eration.. |
| 62 PASS angle.newValueSpecifiedUnits(angle, angle) threw exception NotSupportedErro
r: The implementation did not support the requested type of object or operation.
. | 62 PASS angle.newValueSpecifiedUnits(angle, angle) threw exception NotSupportedErro
r: The implementation did not support the requested type of object or operation.
. |
| 63 PASS angle.newValueSpecifiedUnits(svgElement, svgElement) threw exception NotSup
portedError: The implementation did not support the requested type of object or
operation.. | 63 PASS angle.newValueSpecifiedUnits(svgElement, svgElement) threw exception NotSup
portedError: The implementation did not support the requested type of object or
operation.. |
| 64 PASS angle.newValueSpecifiedUnits() threw exception TypeError: Not enough argume
nts. | 64 PASS angle.newValueSpecifiedUnits() threw exception TypeError: Failed to execute
'newValueSpecifiedUnits' on 'SVGAngle': 2 arguments required, but only 0 presen
t.. |
| 65 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG | 65 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG |
| 66 | 66 |
| 67 Check valid arguments for 'newValueSpecifiedUnits', that should only modify the
'valueAsString' | 67 Check valid arguments for 'newValueSpecifiedUnits', that should only modify the
'valueAsString' |
| 68 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_RAD, parseFloat(Math.PI
.toFixed(5))) is undefined. | 68 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_RAD, parseFloat(Math.PI
.toFixed(5))) is undefined. |
| 69 PASS angle.valueAsString is "3.14159rad" | 69 PASS angle.valueAsString is "3.14159rad" |
| 70 PASS angle.value.toFixed(1) is "180.0" | 70 PASS angle.value.toFixed(1) is "180.0" |
| 71 PASS angle.valueInSpecifiedUnits.toFixed(5) is Math.PI.toFixed(5) | 71 PASS angle.valueInSpecifiedUnits.toFixed(5) is Math.PI.toFixed(5) |
| 72 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_RAD | 72 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_RAD |
| 73 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_GRAD, 400) is undefined
. | 73 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_GRAD, 400) is undefined
. |
| 74 PASS angle.valueAsString is "400grad" | 74 PASS angle.valueAsString is "400grad" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 Now convert the RAD value into a DEG value, and assure that all properties have
been synchronized | 183 Now convert the RAD value into a DEG value, and assure that all properties have
been synchronized |
| 184 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) is undefined. | 184 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) is undefined. |
| 185 PASS angle.value.toFixed(1) is "180.0" | 185 PASS angle.value.toFixed(1) is "180.0" |
| 186 PASS angle.valueInSpecifiedUnits.toFixed(1) is "180.0" | 186 PASS angle.valueInSpecifiedUnits.toFixed(1) is "180.0" |
| 187 PASS angle.valueAsString is "180deg" | 187 PASS angle.valueAsString is "180deg" |
| 188 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG | 188 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG |
| 189 PASS successfullyParsed is true | 189 PASS successfullyParsed is true |
| 190 | 190 |
| 191 TEST COMPLETE | 191 TEST COMPLETE |
| 192 | 192 |
| OLD | NEW |