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]" |
(...skipping 104 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 |