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 29 matching lines...) Expand all Loading... |
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: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle
': Cannot set value with unknown or invalid units (0).. | 46 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN, 50) threw exce
ption NotSupportedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle
': Cannot set value with unknown or invalid units (0).. |
47 PASS angle.newValueSpecifiedUnits(-1, 50) threw exception NotSupportedError: Fai
led to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value with unk
nown or invalid units (65535).. | 47 PASS angle.newValueSpecifiedUnits(-1, 50) threw exception NotSupportedError: Fai
led to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value with unk
nown or invalid units (65535).. |
48 PASS angle.newValueSpecifiedUnits(5, 50) threw exception NotSupportedError: Fail
ed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value with unkn
own or invalid units (5).. | 48 PASS angle.newValueSpecifiedUnits(5, 50) threw exception NotSupportedError: Fail
ed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value with unkn
own or invalid units (5).. |
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.. | 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') threw e
xception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Th
e provided float value is non-finite.. |
51 PASS angle.value is NaN | 51 PASS angle.value is 0 |
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) threw excep
tion TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The pr
ovided float value is non-finite.. |
54 PASS angle.value is NaN | 54 PASS angle.value is 0 |
55 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, svgElement) is und
efined. | 55 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, svgElement) threw
exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': T
he provided float value is non-finite.. |
56 PASS angle.value is NaN | 56 PASS angle.value is 0 |
| 57 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, NaN) threw excepti
on TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The prov
ided float value is non-finite.. |
| 58 PASS angle.value is 0 |
| 59 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, Infinity) threw ex
ception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The
provided float value is non-finite.. |
| 60 PASS angle.value is 0 |
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.. | 61 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: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value wi
th unknown or invalid units (0).. | 62 PASS angle.newValueSpecifiedUnits('aString', 4) threw exception NotSupportedErro
r: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value wi
th unknown or invalid units (0).. |
59 PASS angle.newValueSpecifiedUnits(angle, 4) threw exception NotSupportedError: F
ailed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value with u
nknown or invalid units (0).. | 63 PASS angle.newValueSpecifiedUnits(angle, 4) threw exception NotSupportedError: F
ailed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value with u
nknown or invalid units (0).. |
60 PASS angle.newValueSpecifiedUnits(svgElement, 4) threw exception NotSupportedErr
or: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value w
ith unknown or invalid units (0).. | 64 PASS angle.newValueSpecifiedUnits(svgElement, 4) threw exception NotSupportedErr
or: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value w
ith unknown or invalid units (0).. |
61 PASS angle.newValueSpecifiedUnits('aString', 'aString') threw exception NotSuppo
rtedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set
value with unknown or invalid units (0).. | 65 PASS angle.newValueSpecifiedUnits('aString', 'aString') threw exception TypeErro
r: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float
value is non-finite.. |
62 PASS angle.newValueSpecifiedUnits(angle, angle) threw exception NotSupportedErro
r: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot set value wi
th unknown or invalid units (0).. | 66 PASS angle.newValueSpecifiedUnits(angle, angle) threw exception TypeError: Faile
d to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is
non-finite.. |
63 PASS angle.newValueSpecifiedUnits(svgElement, svgElement) threw exception NotSup
portedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': Cannot se
t value with unknown or invalid units (0).. | 67 PASS angle.newValueSpecifiedUnits(svgElement, svgElement) threw exception TypeEr
ror: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided floa
t value is non-finite.. |
64 PASS angle.newValueSpecifiedUnits() threw exception TypeError: Failed to execute
'newValueSpecifiedUnits' on 'SVGAngle': 2 arguments required, but only 0 presen
t.. | 68 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 | 69 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG |
66 | 70 |
67 Check valid arguments for 'newValueSpecifiedUnits', that should only modify the
'valueAsString' | 71 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. | 72 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_RAD, parseFloat(Math.PI
.toFixed(5))) is undefined. |
69 PASS angle.valueAsString is "3.14159rad" | 73 PASS angle.valueAsString is "3.14159rad" |
70 PASS angle.value.toFixed(1) is "180.0" | 74 PASS angle.value.toFixed(1) is "180.0" |
71 PASS angle.valueInSpecifiedUnits.toFixed(5) is Math.PI.toFixed(5) | 75 PASS angle.valueInSpecifiedUnits.toFixed(5) is Math.PI.toFixed(5) |
72 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_RAD | 76 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_RAD |
73 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_GRAD, 400) is undefined
. | 77 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_GRAD, 400) is undefined
. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 PASS angle.value is 0 | 115 PASS angle.value is 0 |
112 PASS angle.valueInSpecifiedUnits is 0 | 116 PASS angle.valueInSpecifiedUnits is 0 |
113 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 117 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
114 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.. |
115 PASS angle.valueAsString is "0" | 119 PASS angle.valueAsString is "0" |
116 PASS angle.value is 0 | 120 PASS angle.value is 0 |
117 PASS angle.valueInSpecifiedUnits is 0 | 121 PASS angle.valueInSpecifiedUnits is 0 |
118 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 122 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
119 | 123 |
120 Check setting invalid 'valueInSpecifiedUnits' arguments | 124 Check setting invalid 'valueInSpecifiedUnits' arguments |
121 PASS angle.valueInSpecifiedUnits = 'test' is 'test' | 125 PASS angle.valueInSpecifiedUnits = 'test' threw exception TypeError: Failed to s
et the 'valueInSpecifiedUnits' property on 'SVGAngle': The provided float value
is non-finite.. |
122 PASS angle.value is NaN | 126 PASS angle.value is 0 |
123 PASS angle.valueInSpecifiedUnits is NaN | 127 PASS angle.valueInSpecifiedUnits is 0 |
124 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 128 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
125 PASS angle.valueInSpecifiedUnits = 0 is 0 | 129 PASS angle.valueInSpecifiedUnits = 0 is 0 |
126 PASS angle.valueInSpecifiedUnits = angle is angle | 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.. |
127 PASS angle.value is NaN | 131 PASS angle.value is 0 |
128 PASS angle.valueInSpecifiedUnits is NaN | 132 PASS angle.valueInSpecifiedUnits = NaN threw exception TypeError: Failed to set
the 'valueInSpecifiedUnits' property on 'SVGAngle': The provided float value is
non-finite.. |
| 133 PASS angle.value is 0 |
| 134 PASS angle.valueInSpecifiedUnits = Infinity threw exception TypeError: Failed to
set the 'valueInSpecifiedUnits' property on 'SVGAngle': The provided float valu
e is non-finite.. |
| 135 PASS angle.value is 0 |
| 136 PASS angle.valueInSpecifiedUnits is 0 |
129 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 137 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
130 | 138 |
131 Check setting invalid 'value' arguments | 139 Check setting invalid 'value' arguments |
132 PASS angle.value = 0 is 0 | 140 PASS angle.value = 0 is 0 |
133 PASS angle.value = 'test' is 'test' | 141 PASS angle.value = 'test' threw exception TypeError: Failed to set the 'value' p
roperty on 'SVGAngle': The provided float value is non-finite.. |
134 PASS angle.value is NaN | 142 PASS angle.value is 0 |
135 PASS angle.valueInSpecifiedUnits is NaN | 143 PASS angle.valueInSpecifiedUnits is 0 |
136 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 144 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
137 PASS angle.value = 0 is 0 | 145 PASS angle.value = 0 is 0 |
138 PASS angle.value = angle is angle | 146 PASS angle.value = angle threw exception TypeError: Failed to set the 'value' pr
operty on 'SVGAngle': The provided float value is non-finite.. |
139 PASS angle.value is NaN | 147 PASS angle.value is 0 |
140 PASS angle.valueInSpecifiedUnits is NaN | 148 PASS angle.value = NaN threw exception TypeError: Failed to set the 'value' prop
erty on 'SVGAngle': The provided float value is non-finite.. |
| 149 PASS angle.value is 0 |
| 150 PASS angle.value = Infinity threw exception TypeError: Failed to set the 'value'
property on 'SVGAngle': The provided float value is non-finite.. |
| 151 PASS angle.value is 0 |
| 152 PASS angle.valueInSpecifiedUnits is 0 |
141 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED | 153 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED |
142 | 154 |
143 Reset to angle in degree units | 155 Reset to angle in degree units |
144 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, 0) is undefined. | 156 PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, 0) is undefined. |
145 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG | 157 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG |
146 | 158 |
147 Check setting valid 'value' arguments, assure that 'valueInSpecifiedUnits' and '
valueAsString' are synchronized | 159 Check setting valid 'value' arguments, assure that 'valueInSpecifiedUnits' and '
valueAsString' are synchronized |
148 PASS angle.value = 50 is 50 | 160 PASS angle.value = 50 is 50 |
149 PASS angle.valueInSpecifiedUnits is 50 | 161 PASS angle.valueInSpecifiedUnits is 50 |
150 PASS angle.valueAsString is "50deg" | 162 PASS angle.valueAsString is "50deg" |
(...skipping 32 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 | 195 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. | 196 PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) is undefined. |
185 PASS angle.value.toFixed(1) is "180.0" | 197 PASS angle.value.toFixed(1) is "180.0" |
186 PASS angle.valueInSpecifiedUnits.toFixed(1) is "180.0" | 198 PASS angle.valueInSpecifiedUnits.toFixed(1) is "180.0" |
187 PASS angle.valueAsString is "180deg" | 199 PASS angle.valueAsString is "180deg" |
188 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG | 200 PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG |
189 PASS successfullyParsed is true | 201 PASS successfullyParsed is true |
190 | 202 |
191 TEST COMPLETE | 203 TEST COMPLETE |
192 | 204 |
OLD | NEW |