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 16 matching lines...) Expand all Loading... |
27 Reset points attribute to 0 0 100 0 100 100 0 100 | 27 Reset points attribute to 0 0 100 0 100 100 0 100 |
28 PASS poly1.setAttribute('points', '0 0 100 0 100 100 0 100') is undefined. | 28 PASS poly1.setAttribute('points', '0 0 100 0 100 100 0 100') is undefined. |
29 PASS poly1.points.numberOfItems is 4 | 29 PASS poly1.points.numberOfItems is 4 |
30 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" | 30 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" |
31 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" | 31 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" |
32 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" | 32 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" |
33 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" | 33 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" |
34 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100
0 100" | 34 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100
0 100" |
35 | 35 |
36 Test uncommon arguments for getItem() | 36 Test uncommon arguments for getItem() |
37 PASS poly1.points.getItem(30) threw exception IndexSizeError: Failed to execute
'getItem' on 'SVGPointList': The index provided (30) is greater than the maximum
bound (4).. | 37 PASS poly1.points.getItem(30) threw exception IndexSizeError: Index or size was
negative, or greater than the allowed value.. |
38 PASS poly1.points.getItem('aString') is poly1.points.getItem(0) | 38 PASS poly1.points.getItem('aString') is poly1.points.getItem(0) |
39 PASS poly1.points.getItem(poly1) is poly1.points.getItem(0) | 39 PASS poly1.points.getItem(poly1) is poly1.points.getItem(0) |
40 PASS poly1.points.getItem(null) is poly1.points.getItem(0) | 40 PASS poly1.points.getItem(null) is poly1.points.getItem(0) |
41 | 41 |
42 Test uncommon arguments for insertItemBefore() | 42 Test uncommon arguments for insertItemBefore() |
43 PASS poly1.points.insertItemBefore(30) threw exception TypeError: Failed to exec
ute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only 1 prese
nt.. | 43 PASS poly1.points.insertItemBefore(30) threw exception TypeError: Failed to exec
ute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only 1 prese
nt.. |
44 PASS poly1.points.insertItemBefore('aString') threw exception TypeError: Failed
to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only
1 present.. | 44 PASS poly1.points.insertItemBefore('aString') threw exception TypeError: Failed
to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only
1 present.. |
45 PASS poly1.points.insertItemBefore(poly1) threw exception TypeError: Failed to e
xecute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only 1 pr
esent.. | 45 PASS poly1.points.insertItemBefore(poly1) threw exception TypeError: Failed to e
xecute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only 1 pr
esent.. |
46 PASS poly1.points.insertItemBefore(null) threw exception TypeError: Failed to ex
ecute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only 1 pre
sent.. | 46 PASS poly1.points.insertItemBefore(null) threw exception TypeError: Failed to ex
ecute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only 1 pre
sent.. |
47 PASS dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), 'aString')
) is "x=100 y=0" | 47 PASS dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), 'aString')
) is "x=100 y=0" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 PASS poly1.points.numberOfItems is 2 | 132 PASS poly1.points.numberOfItems is 2 |
133 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=100" | 133 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=100" |
134 PASS dumpPoint(poly1.points.getItem(1)) is "x=0 y=100" | 134 PASS dumpPoint(poly1.points.getItem(1)) is "x=0 y=100" |
135 PASS poly1.getAttribute('points').formatPointsAttribute() is "100 100 0 100" | 135 PASS poly1.getAttribute('points').formatPointsAttribute() is "100 100 0 100" |
136 PASS dumpPoint(poly1.points.removeItem(null)) is "x=100 y=100" | 136 PASS dumpPoint(poly1.points.removeItem(null)) is "x=100 y=100" |
137 PASS poly1.points.numberOfItems is 1 | 137 PASS poly1.points.numberOfItems is 1 |
138 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100" | 138 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100" |
139 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100" | 139 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100" |
140 | 140 |
141 Test uncommon arguments for appendItem() | 141 Test uncommon arguments for appendItem() |
142 PASS poly1.points.appendItem(30) threw exception TypeError: Failed to execute 'a
ppendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.. | |
143 PASS poly1.points.appendItem('aString') threw exception TypeError: Failed to exe
cute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.. | |
144 PASS poly1.points.appendItem(poly1) threw exception TypeError: Failed to execute
'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.. | |
145 PASS poly1.points.appendItem(null) threw exception TypeError: Failed to execute
'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.. | |
146 PASS dumpPoint(poly1.points.appendItem(point)) is "x=200 y=100" | 142 PASS dumpPoint(poly1.points.appendItem(point)) is "x=200 y=100" |
147 PASS poly1.points.numberOfItems is 2 | 143 PASS poly1.points.numberOfItems is 2 |
148 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100" | 144 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100" |
149 PASS dumpPoint(poly1.points.getItem(1)) is "x=200 y=100" | 145 PASS dumpPoint(poly1.points.getItem(1)) is "x=200 y=100" |
150 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100 200 100" | 146 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100 200 100" |
151 PASS successfullyParsed is true | 147 PASS successfullyParsed is true |
152 | 148 |
153 TEST COMPLETE | 149 TEST COMPLETE |
154 | 150 |
OLD | NEW |