OLD | NEW |
1 This is a test of the simple SVGPointList API parts. | 1 This is a test of the simple SVGPointList 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 poly1.points.numberOfItems is 4 | 6 PASS poly1.points.numberOfItems is 4 |
7 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" | 7 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" |
8 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" | 8 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" |
9 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" | 9 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" |
10 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" | 10 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 Test uncommon arguments for replaceItem() | 79 Test uncommon arguments for replaceItem() |
80 PASS poly1.points.replaceItem(30) threw exception TypeError: Failed to execute '
replaceItem' on 'SVGPointList': 2 arguments required, but only 1 present.. | 80 PASS poly1.points.replaceItem(30) threw exception TypeError: Failed to execute '
replaceItem' on 'SVGPointList': 2 arguments required, but only 1 present.. |
81 PASS poly1.points.replaceItem('aString') threw exception TypeError: Failed to ex
ecute 'replaceItem' on 'SVGPointList': 2 arguments required, but only 1 present.
. | 81 PASS poly1.points.replaceItem('aString') threw exception TypeError: Failed to ex
ecute 'replaceItem' on 'SVGPointList': 2 arguments required, but only 1 present.
. |
82 PASS poly1.points.replaceItem(poly1) threw exception TypeError: Failed to execut
e 'replaceItem' on 'SVGPointList': 2 arguments required, but only 1 present.. | 82 PASS poly1.points.replaceItem(poly1) threw exception TypeError: Failed to execut
e 'replaceItem' on 'SVGPointList': 2 arguments required, but only 1 present.. |
83 PASS poly1.points.replaceItem(null, 0) threw exception TypeError: Failed to exec
ute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.. | 83 PASS poly1.points.replaceItem(null, 0) threw exception TypeError: Failed to exec
ute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.. |
84 PASS poly1.points.replaceItem('aString', 0) threw exception TypeError: Failed to
execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.
. | 84 PASS poly1.points.replaceItem('aString', 0) threw exception TypeError: Failed to
execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.
. |
85 PASS poly1.points.replaceItem(poly1, 0) threw exception TypeError: Failed to exe
cute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.. | 85 PASS poly1.points.replaceItem(poly1, 0) threw exception TypeError: Failed to exe
cute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.. |
86 PASS poly1.points.replaceItem(1, 0) threw exception TypeError: Failed to execute
'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.. | 86 PASS poly1.points.replaceItem(1, 0) threw exception TypeError: Failed to execute
'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.. |
87 | 87 |
| 88 Test uncommon values for indexed setter |
| 89 PASS poly1.points[0] = 30 threw exception TypeError: Failed to set an indexed pr
operty on 'SVGPointList': The provided value is not of type 'SVGPoint'.. |
| 90 PASS poly1.points[0] = 'aString' threw exception TypeError: Failed to set an ind
exed property on 'SVGPointList': The provided value is not of type 'SVGPoint'.. |
| 91 PASS poly1.points[0] = poly1 threw exception TypeError: Failed to set an indexed
property on 'SVGPointList': The provided value is not of type 'SVGPoint'.. |
| 92 PASS poly1.points[0] = null threw exception TypeError: Failed to set an indexed
property on 'SVGPointList': The provided value is not of type 'SVGPoint'.. |
| 93 |
88 Test uncommon arguments for replaceItem() and xml-dom synchronization | 94 Test uncommon arguments for replaceItem() and xml-dom synchronization |
89 PASS poly1.points.numberOfItems is 4 | 95 PASS poly1.points.numberOfItems is 4 |
90 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" | 96 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" |
91 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" | 97 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" |
92 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" | 98 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" |
93 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" | 99 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" |
94 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100
0 100" | 100 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100
0 100" |
95 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), 0)) is "x=0 y=0
" | 101 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), 0)) is "x=0 y=0
" |
96 PASS poly1.points.numberOfItems is 4 | 102 PASS poly1.points.numberOfItems is 4 |
97 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" | 103 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 Test uncommon arguments for appendItem() | 147 Test uncommon arguments for appendItem() |
142 PASS dumpPoint(poly1.points.appendItem(point)) is "x=200 y=100" | 148 PASS dumpPoint(poly1.points.appendItem(point)) is "x=200 y=100" |
143 PASS poly1.points.numberOfItems is 2 | 149 PASS poly1.points.numberOfItems is 2 |
144 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100" | 150 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100" |
145 PASS dumpPoint(poly1.points.getItem(1)) is "x=200 y=100" | 151 PASS dumpPoint(poly1.points.getItem(1)) is "x=200 y=100" |
146 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100 200 100" | 152 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100 200 100" |
147 PASS successfullyParsed is true | 153 PASS successfullyParsed is true |
148 | 154 |
149 TEST COMPLETE | 155 TEST COMPLETE |
150 | 156 |
OLD | NEW |