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 15 matching lines...) Expand all Loading... |
26 PASS length.convertToSpecifiedUnits() threw exception TypeError: Failed to execu
te 'convertToSpecifiedUnits' on 'SVGLength': 1 argument required, but only 0 pre
sent.. | 26 PASS length.convertToSpecifiedUnits() threw exception TypeError: Failed to execu
te 'convertToSpecifiedUnits' on 'SVGLength': 1 argument required, but only 0 pre
sent.. |
27 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 27 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
28 PASS length.value is 2 | 28 PASS length.value is 2 |
29 PASS length.valueInSpecifiedUnits is 2 | 29 PASS length.valueInSpecifiedUnits is 2 |
30 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 30 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
31 | 31 |
32 Check invalid arguments for 'newValueSpecifiedUnits' | 32 Check invalid arguments for 'newValueSpecifiedUnits' |
33 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_UNKNOWN, 4) threw ex
ception NotSupportedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLen
gth': Cannot set value with unknown or invalid units (0).. | 33 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_UNKNOWN, 4) threw ex
ception NotSupportedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLen
gth': Cannot set value with unknown or invalid units (0).. |
34 PASS length.newValueSpecifiedUnits(-1, 4) threw exception NotSupportedError: Fai
led to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value with un
known or invalid units (65535).. | 34 PASS length.newValueSpecifiedUnits(-1, 4) threw exception NotSupportedError: Fai
led to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value with un
known or invalid units (65535).. |
35 PASS length.newValueSpecifiedUnits(11, 4) threw exception NotSupportedError: Fai
led to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value with un
known or invalid units (11).. | 35 PASS length.newValueSpecifiedUnits(11, 4) threw exception NotSupportedError: Fai
led to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value with un
known or invalid units (11).. |
36 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 'aString') is un
defined. | |
37 PASS length.value is NaN | |
38 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 0) is undefined. | 36 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 0) is undefined. |
39 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, length) is undef
ined. | 37 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 'aString') threw
exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength':
The provided float value is non-finite.. |
40 PASS length.value is NaN | 38 PASS length.value is 0 |
41 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 0) is undefined. | 39 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, length) threw ex
ception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Th
e provided float value is non-finite.. |
42 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, svgElement) is u
ndefined. | 40 PASS length.value is 0 |
43 PASS length.value is NaN | 41 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, svgElement) thre
w exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength'
: The provided float value is non-finite.. |
| 42 PASS length.value is 0 |
| 43 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, NaN) threw excep
tion TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The p
rovided float value is non-finite.. |
| 44 PASS length.value is 0 |
| 45 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, Infinity) threw
exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength':
The provided float value is non-finite.. |
| 46 PASS length.value is 0 |
44 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX) threw exception
TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': 2 argument
s required, but only 1 present.. | 47 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX) threw exception
TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': 2 argument
s required, but only 1 present.. |
45 PASS length.newValueSpecifiedUnits('aString', 4) threw exception NotSupportedErr
or: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value
with unknown or invalid units (0).. | 48 PASS length.newValueSpecifiedUnits('aString', 4) threw exception NotSupportedErr
or: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value
with unknown or invalid units (0).. |
46 PASS length.newValueSpecifiedUnits(length, 4) threw exception NotSupportedError:
Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value wit
h unknown or invalid units (0).. | 49 PASS length.newValueSpecifiedUnits(length, 4) threw exception NotSupportedError:
Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value wit
h unknown or invalid units (0).. |
47 PASS length.newValueSpecifiedUnits(svgElement, 4) threw exception NotSupportedEr
ror: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value
with unknown or invalid units (0).. | 50 PASS length.newValueSpecifiedUnits(svgElement, 4) threw exception NotSupportedEr
ror: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value
with unknown or invalid units (0).. |
48 PASS length.newValueSpecifiedUnits('aString', 'aString') threw exception NotSupp
ortedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot se
t value with unknown or invalid units (0).. | 51 PASS length.newValueSpecifiedUnits('aString', 'aString') threw exception TypeErr
or: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided floa
t value is non-finite.. |
49 PASS length.newValueSpecifiedUnits(length, length) threw exception NotSupportedE
rror: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set valu
e with unknown or invalid units (0).. | 52 PASS length.newValueSpecifiedUnits(length, length) threw exception TypeError: Fa
iled to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float valu
e is non-finite.. |
50 PASS length.newValueSpecifiedUnits(svgElement, svgElement) threw exception NotSu
pportedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot
set value with unknown or invalid units (0).. | 53 PASS length.newValueSpecifiedUnits(svgElement, svgElement) threw exception TypeE
rror: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided fl
oat value is non-finite.. |
51 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 54 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
52 PASS length.value is 2 | 55 PASS length.value is 2 |
53 PASS length.valueInSpecifiedUnits is 2 | 56 PASS length.valueInSpecifiedUnits is 2 |
54 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 57 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
55 | 58 |
56 Check setting invalid 'valueAsString' arguments | 59 Check setting invalid 'valueAsString' arguments |
57 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.. |
58 PASS length.valueAsString is "2px" | 61 PASS length.valueAsString is "2px" |
59 PASS length.value is 2 | 62 PASS length.value is 2 |
60 PASS length.valueInSpecifiedUnits is 2 | 63 PASS length.valueInSpecifiedUnits is 2 |
61 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 64 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
62 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.
. |
63 PASS length.valueAsString is "2px" | 66 PASS length.valueAsString is "2px" |
64 PASS length.value is 2 | 67 PASS length.value is 2 |
65 PASS length.valueInSpecifiedUnits is 2 | 68 PASS length.valueInSpecifiedUnits is 2 |
66 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 69 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
67 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.. |
68 PASS length.valueAsString is "2px" | 71 PASS length.valueAsString is "2px" |
69 PASS length.value is 2 | 72 PASS length.value is 2 |
70 PASS length.valueInSpecifiedUnits is 2 | 73 PASS length.valueInSpecifiedUnits is 2 |
71 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX | 74 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
| 75 |
| 76 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.. |
| 78 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 |
| 80 PASS length.valueInSpecifiedUnits is 2 |
| 81 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
| 82 |
| 83 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.. |
| 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.. |
| 86 PASS length.value is 2 |
| 87 PASS length.valueInSpecifiedUnits is 2 |
| 88 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX |
72 PASS successfullyParsed is true | 89 PASS successfullyParsed is true |
73 | 90 |
74 TEST COMPLETE | 91 TEST COMPLETE |
75 | 92 |
OLD | NEW |