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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 Test uncommon arguments for replaceItem() | 63 Test uncommon arguments for replaceItem() |
64 PASS circle1.transform.baseVal.replaceItem(30) threw exception TypeError: Not en
ough arguments. | 64 PASS circle1.transform.baseVal.replaceItem(30) threw exception TypeError: Not en
ough arguments. |
65 PASS circle1.transform.baseVal.replaceItem('aString') threw exception TypeError:
Not enough arguments. | 65 PASS circle1.transform.baseVal.replaceItem('aString') threw exception TypeError:
Not enough arguments. |
66 PASS circle1.transform.baseVal.replaceItem(circle1) threw exception TypeError: N
ot enough arguments. | 66 PASS circle1.transform.baseVal.replaceItem(circle1) threw exception TypeError: N
ot enough arguments. |
67 PASS circle1.transform.baseVal.replaceItem(null) threw exception TypeError: Not
enough arguments. | 67 PASS circle1.transform.baseVal.replaceItem(null) threw exception TypeError: Not
enough arguments. |
68 PASS circle1.transform.baseVal.replaceItem(30, 0) threw exception TypeError: Typ
e error. | 68 PASS circle1.transform.baseVal.replaceItem(30, 0) threw exception TypeError: Typ
e error. |
69 PASS circle1.transform.baseVal.replaceItem('aString', 0) threw exception TypeErr
or: Type error. | 69 PASS circle1.transform.baseVal.replaceItem('aString', 0) threw exception TypeErr
or: Type error. |
70 PASS circle1.transform.baseVal.replaceItem(circle1, 0) threw exception TypeError
: Type error. | 70 PASS circle1.transform.baseVal.replaceItem(circle1, 0) threw exception TypeError
: Type error. |
71 PASS circle1.transform.baseVal.replaceItem(null, 0) threw exception Error: SVG_W
RONG_TYPE_ERR: DOM SVG Exception 0. | 71 PASS circle1.transform.baseVal.replaceItem(null, 0) threw exception Error: SVG_W
RONG_TYPE_ERR: DOM SVG Exception 0. |
72 PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0),
0) is circle1.transform.baseVal.getItem(0) | 72 PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0),
0) is circle1.transform.baseVal.getItem(0) |
73 PASS circle1.transform.baseVal.numberOfItems is 3 | 73 PASS circle1.transform.baseVal.numberOfItems is 4 |
74 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]" | 74 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]" |
75 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]" | 75 PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_
SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]" |
76 PASS dumpTransform(circle1.transform.baseVal.getItem(2)) is "type=SVG_TRANSFORM_
SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]" | 76 PASS dumpTransform(circle1.transform.baseVal.getItem(2)) is "type=SVG_TRANSFORM_
TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]" |
77 PASS circle1.getAttribute('transform') is "rotate(90) translate(10 10) skewX(45)
" | 77 PASS dumpTransform(circle1.transform.baseVal.getItem(3)) is "type=SVG_TRANSFORM_
SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]" |
| 78 PASS circle1.getAttribute('transform') is "rotate(90) scale(2 2) translate(10 10
) skewX(45)" |
78 PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0),
'aString') is circle1.transform.baseVal.getItem(0) | 79 PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0),
'aString') is circle1.transform.baseVal.getItem(0) |
79 PASS circle1.transform.baseVal.numberOfItems is 2 | 80 PASS circle1.transform.baseVal.numberOfItems is 4 |
80 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]" | 81 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]" |
81 PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_
SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]" | 82 PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_
SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]" |
82 PASS circle1.getAttribute('transform') is "rotate(90) skewX(45)" | 83 PASS dumpTransform(circle1.transform.baseVal.getItem(2)) is "type=SVG_TRANSFORM_
TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]" |
| 84 PASS dumpTransform(circle1.transform.baseVal.getItem(3)) is "type=SVG_TRANSFORM_
SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]" |
| 85 PASS circle1.getAttribute('transform') is "rotate(90) scale(2 2) translate(10 10
) skewX(45)" |
83 PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0),
circle1) is circle1.transform.baseVal.getItem(0) | 86 PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0),
circle1) is circle1.transform.baseVal.getItem(0) |
84 PASS circle1.transform.baseVal.numberOfItems is 1 | 87 PASS circle1.transform.baseVal.numberOfItems is 4 |
85 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]" | 88 PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_
ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]" |
86 PASS circle1.getAttribute('transform') is "rotate(90)" | 89 PASS dumpTransform(circle1.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_
SCALE matrix=[2.0 0.0 0.0 2.0 0.0 0.0]" |
87 PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0),
null) threw exception Error: IndexSizeError: DOM Exception 1. | 90 PASS dumpTransform(circle1.transform.baseVal.getItem(2)) is "type=SVG_TRANSFORM_
TRANSLATE matrix=[1.0 0.0 0.0 1.0 10.0 10.0]" |
88 PASS circle1.transform.baseVal.numberOfItems is 0 | 91 PASS dumpTransform(circle1.transform.baseVal.getItem(3)) is "type=SVG_TRANSFORM_
SKEWX matrix=[1.0 0.0 1.0 1.0 0.0 0.0]" |
89 PASS circle1.getAttribute('transform') is "" | 92 PASS circle1.getAttribute('transform') is "rotate(90) scale(2 2) translate(10 10
) skewX(45)" |
| 93 PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0),
null) is circle1.transform.baseVal.getItem(0) |
| 94 PASS circle1.transform.baseVal.numberOfItems is 4 |
| 95 PASS circle1.getAttribute('transform') is "rotate(90) scale(2 2) translate(10 10
) skewX(45)" |
90 | 96 |
91 Set transform='rotate(90) scale(2 2) translate(10 10) skewX(45)' for circle1 | 97 Set transform='rotate(90) scale(2 2) translate(10 10) skewX(45)' for circle1 |
92 PASS circle1.setAttribute('transform', 'rotate(90) scale(2 2) translate(10 10) s
kewX(45)') is undefined. | 98 PASS circle1.setAttribute('transform', 'rotate(90) scale(2 2) translate(10 10) s
kewX(45)') is undefined. |
93 | 99 |
94 Test uncommon arguments for removeItem() | 100 Test uncommon arguments for removeItem() |
95 PASS circle1.transform.baseVal.removeItem(30) threw exception Error: IndexSizeEr
ror: DOM Exception 1. | 101 PASS circle1.transform.baseVal.removeItem(30) threw exception Error: IndexSizeEr
ror: DOM Exception 1. |
96 PASS dumpTransform(circle1.transform.baseVal.removeItem(0)) is "type=SVG_TRANSFO
RM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]" | 102 PASS dumpTransform(circle1.transform.baseVal.removeItem(0)) is "type=SVG_TRANSFO
RM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]" |
97 PASS circle1.transform.baseVal.numberOfItems is 3 | 103 PASS circle1.transform.baseVal.numberOfItems is 3 |
98 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]" | 104 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]" |
99 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]" | 105 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 23 matching lines...) Expand all Loading... |
123 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]" |
124 PASS transform.setRotate(45, 50, 100) is undefined. | 130 PASS transform.setRotate(45, 50, 100) is undefined. |
125 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]" |
126 PASS circle1.transform.baseVal.numberOfItems is 1 | 132 PASS circle1.transform.baseVal.numberOfItems is 1 |
127 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]" |
128 PASS circle1.getAttribute('transform') is "rotate(45 50 100)" | 134 PASS circle1.getAttribute('transform') is "rotate(45 50 100)" |
129 PASS successfullyParsed is true | 135 PASS successfullyParsed is true |
130 | 136 |
131 TEST COMPLETE | 137 TEST COMPLETE |
132 | 138 |
OLD | NEW |