OLD | NEW |
1 This is a test of the simple SVGTransformList API parts. | 1 This is a test of the simple SVGTransformList API parts. |
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 PASS circle1.transform.baseVal != circle1.transform.animVal is true | 6 PASS circle1.transform.baseVal != circle1.transform.animVal is true |
7 PASS circle1.transform.baseVal.numberOfItems is 2 | 7 PASS circle1.transform.baseVal.numberOfItems is 2 |
8 PASS circle1.transform.animVal.numberOfItems is 2 | 8 PASS circle1.transform.animVal.numberOfItems is 2 |
9 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]" | 9 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]" |
10 PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_
TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]" | 10 PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_
TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]" |
11 | 11 |
12 Test uncommon arguments for initialize() | 12 Test uncommon arguments for initialize() |
13 PASS circle1.transform.baseVal.initialize(30) threw exception TypeError: Failed
to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVGTr
ansform'.. | 13 PASS circle1.transform.baseVal.initialize(30) threw exception TypeError: Failed
to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVGTr
ansform'.. |
14 PASS circle1.transform.baseVal.initialize('aString') threw exception TypeError:
Failed to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type
'SVGTransform'.. | 14 PASS circle1.transform.baseVal.initialize('aString') threw exception TypeError:
Failed to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type
'SVGTransform'.. |
15 PASS circle1.transform.baseVal.initialize(circle1) threw exception TypeError: Fa
iled to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type '
SVGTransform'.. | 15 PASS circle1.transform.baseVal.initialize(circle1) threw exception TypeError: Fa
iled to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type '
SVGTransform'.. |
16 PASS circle1.transform.baseVal.initialize(null) threw exception TypeError: Faile
d to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVG
Transform'.. | 16 PASS circle1.transform.baseVal.initialize(null) threw exception TypeError: Faile
d to execute 'initialize' on 'SVGTransformList': parameter 1 is not of type 'SVG
Transform'.. |
17 | 17 |
18 Test uncommon arguments for getItem() | 18 Test uncommon arguments for getItem() |
19 PASS circle1.transform.baseVal.getItem(30) threw exception IndexSizeError: Faile
d to execute 'getItem' on 'SVGTransformList': The index provided (30) is greater
than the maximum bound (2).. | 19 PASS circle1.transform.baseVal.getItem(30) threw exception IndexSizeError: Index
or size was negative, or greater than the allowed value.. |
20 PASS circle1.transform.baseVal.getItem('aString') is circle1.transform.baseVal.g
etItem(0) | 20 PASS circle1.transform.baseVal.getItem('aString') is circle1.transform.baseVal.g
etItem(0) |
21 PASS circle1.transform.baseVal.getItem(circle1) is circle1.transform.baseVal.get
Item(0) | 21 PASS circle1.transform.baseVal.getItem(circle1) is circle1.transform.baseVal.get
Item(0) |
22 PASS circle1.transform.baseVal.getItem(null) is circle1.transform.baseVal.getIte
m(0) | 22 PASS circle1.transform.baseVal.getItem(null) is circle1.transform.baseVal.getIte
m(0) |
23 | 23 |
24 Test uncommon arguments for insertItemBefore() | 24 Test uncommon arguments for insertItemBefore() |
25 PASS circle1.transform.baseVal.insertItemBefore(30) threw exception TypeError: F
ailed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required,
but only 1 present.. | 25 PASS circle1.transform.baseVal.insertItemBefore(30) threw exception TypeError: F
ailed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required,
but only 1 present.. |
26 PASS circle1.transform.baseVal.insertItemBefore('aString') threw exception TypeE
rror: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments re
quired, but only 1 present.. | 26 PASS circle1.transform.baseVal.insertItemBefore('aString') threw exception TypeE
rror: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments re
quired, but only 1 present.. |
27 PASS circle1.transform.baseVal.insertItemBefore(circle1) threw exception TypeErr
or: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments requ
ired, but only 1 present.. | 27 PASS circle1.transform.baseVal.insertItemBefore(circle1) threw exception TypeErr
or: Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments requ
ired, but only 1 present.. |
28 PASS circle1.transform.baseVal.insertItemBefore(null) threw exception TypeError:
Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments require
d, but only 1 present.. | 28 PASS circle1.transform.baseVal.insertItemBefore(null) threw exception TypeError:
Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments require
d, but only 1 present.. |
29 PASS circle1.transform.baseVal.insertItemBefore(circle1.transform.baseVal.getIte
m(1), 'aString') is circle1.transform.baseVal.getItem(0) | 29 PASS circle1.transform.baseVal.insertItemBefore(circle1.transform.baseVal.getIte
m(1), 'aString') is circle1.transform.baseVal.getItem(0) |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]" | 115 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]" |
116 PASS circle1.getAttribute('transform') is "skewX(45)" | 116 PASS circle1.getAttribute('transform') is "skewX(45)" |
117 | 117 |
118 Test uncommon arguments for appendItem() | 118 Test uncommon arguments for appendItem() |
119 PASS circle1.transform.baseVal.appendItem(30) threw exception TypeError: Failed
to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTr
ansform'.. | 119 PASS circle1.transform.baseVal.appendItem(30) threw exception TypeError: Failed
to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTr
ansform'.. |
120 PASS circle1.transform.baseVal.appendItem('aString') threw exception TypeError:
Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type
'SVGTransform'.. | 120 PASS circle1.transform.baseVal.appendItem('aString') threw exception TypeError:
Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type
'SVGTransform'.. |
121 PASS circle1.transform.baseVal.appendItem(circle1) threw exception TypeError: Fa
iled to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type '
SVGTransform'.. | 121 PASS circle1.transform.baseVal.appendItem(circle1) threw exception TypeError: Fa
iled to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type '
SVGTransform'.. |
122 PASS circle1.transform.baseVal.appendItem(null) threw exception TypeError: Faile
d to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVG
Transform'.. | 122 PASS circle1.transform.baseVal.appendItem(null) threw exception TypeError: Faile
d to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVG
Transform'.. |
123 | 123 |
124 Testing animVal clear throws | 124 Testing animVal clear throws |
125 PASS circle1.transform.animVal.clear() threw exception NoModificationAllowedErro
r: Failed to execute 'clear' on 'SVGTransformList': This object is read-only, be
cause the property is an animation value.. | 125 PASS circle1.transform.animVal.clear() threw exception NoModificationAllowedErro
r: Failed to execute 'clear' on 'SVGTransformList': The object is read-only.. |
126 PASS circle1.transform.baseVal.clear() is undefined. | 126 PASS circle1.transform.baseVal.clear() is undefined. |
127 | 127 |
128 Creating new SVGTransform, with 45 deg rotation about x=50, y=100 and append it
to the transform list | 128 Creating new SVGTransform, with 45 deg rotation about x=50, y=100 and append it
to the transform list |
129 PASS dumpTransform(transform = svg.createSVGTransform()) is "type=SVG_TRANSFORM_
MATRIX matrix=[1.0 0.0 0.0 1.0 0.0 0.0]" | 129 PASS dumpTransform(transform = svg.createSVGTransform()) is "type=SVG_TRANSFORM_
MATRIX matrix=[1.0 0.0 0.0 1.0 0.0 0.0]" |
130 PASS transform.setRotate(45, 50, 100) is undefined. | 130 PASS transform.setRotate(45, 50, 100) is undefined. |
131 PASS dumpTransform(circle1.transform.baseVal.appendItem(transform)) is "type=SVG
_TRANSFORM_ROTATE matrix=[0.7 0.7 -0.7 0.7 85.4 -6.1]" | 131 PASS dumpTransform(circle1.transform.baseVal.appendItem(transform)) is "type=SVG
_TRANSFORM_ROTATE matrix=[0.7 0.7 -0.7 0.7 85.4 -6.1]" |
132 PASS circle1.transform.baseVal.numberOfItems is 1 | 132 PASS circle1.transform.baseVal.numberOfItems is 1 |
133 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
ROTATE matrix=[0.7 0.7 -0.7 0.7 85.4 -6.1]" | 133 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
ROTATE matrix=[0.7 0.7 -0.7 0.7 85.4 -6.1]" |
134 PASS circle1.getAttribute('transform') is "rotate(45 50 100)" | 134 PASS circle1.getAttribute('transform') is "rotate(45 50 100)" |
135 PASS successfullyParsed is true | 135 PASS successfullyParsed is true |
136 | 136 |
137 TEST COMPLETE | 137 TEST COMPLETE |
138 | 138 |
OLD | NEW |