| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 PASS poly1.points.replaceItem(1, 0) threw exception TypeError: Type error. | 86 PASS poly1.points.replaceItem(1, 0) threw exception TypeError: Type error. |
| 87 | 87 |
| 88 Test uncommon arguments for replaceItem() and xml-dom synchronization | 88 Test uncommon arguments for replaceItem() and xml-dom synchronization |
| 89 PASS poly1.points.numberOfItems is 4 | 89 PASS poly1.points.numberOfItems is 4 |
| 90 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" | 90 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" |
| 91 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" | 91 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" |
| 92 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" | 92 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" |
| 93 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" | 93 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" | 94 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
" | 95 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), 0)) is "x=0 y=0
" |
| 96 PASS poly1.points.numberOfItems is 3 | 96 PASS poly1.points.numberOfItems is 4 |
| 97 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" | 97 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" |
| 98 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=100" | 98 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" |
| 99 PASS dumpPoint(poly1.points.getItem(2)) is "x=0 y=100" | 99 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" |
| 100 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 100 0 100" | 100 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" |
| 101 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100
0 100" |
| 101 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), 'aString')) is
"x=0 y=0" | 102 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), 'aString')) is
"x=0 y=0" |
| 102 PASS poly1.points.numberOfItems is 2 | 103 PASS poly1.points.numberOfItems is 4 |
| 103 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" | 104 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" |
| 104 PASS dumpPoint(poly1.points.getItem(1)) is "x=0 y=100" | 105 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" |
| 105 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 0 100" | 106 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" |
| 107 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" |
| 108 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100
0 100" |
| 106 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), poly1)) is "x=0
y=0" | 109 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), poly1)) is "x=0
y=0" |
| 107 PASS poly1.points.numberOfItems is 1 | 110 PASS poly1.points.numberOfItems is 4 |
| 108 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" | 111 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" |
| 109 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0" | 112 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0" |
| 110 PASS poly1.points.replaceItem(poly1.points.getItem(0), null) threw exception Err
or: IndexSizeError: DOM Exception 1. | 113 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100" |
| 111 PASS poly1.points.numberOfItems is 0 | 114 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" |
| 112 PASS poly1.getAttribute('points') is "" | 115 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100
0 100" |
| 116 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), null)) is "x=0
y=0" |
| 117 PASS poly1.points.numberOfItems is 4 |
| 118 PASS poly1.getAttribute('points') is "0 0 100 0 100 100 0 100" |
| 113 | 119 |
| 114 Reset points attribute to 0 0 100 0 100 100 0 100 | 120 Reset points attribute to 0 0 100 0 100 100 0 100 |
| 115 PASS poly1.setAttribute('points', '0 0 100 0 100 100 0 100') is undefined. | 121 PASS poly1.setAttribute('points', '0 0 100 0 100 100 0 100') is undefined. |
| 116 | 122 |
| 117 Test uncommon arguments for removeItem() | 123 Test uncommon arguments for removeItem() |
| 118 PASS poly1.points.removeItem(30) threw exception Error: IndexSizeError: DOM Exce
ption 1. | 124 PASS poly1.points.removeItem(30) threw exception Error: IndexSizeError: DOM Exce
ption 1. |
| 119 PASS dumpPoint(poly1.points.removeItem('aString')) is "x=0 y=0" | 125 PASS dumpPoint(poly1.points.removeItem('aString')) is "x=0 y=0" |
| 120 PASS poly1.points.numberOfItems is 3 | 126 PASS poly1.points.numberOfItems is 3 |
| 121 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=0" | 127 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=0" |
| 122 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=100" | 128 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=100" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 139 PASS poly1.points.appendItem(null) threw exception Error: SVG_WRONG_TYPE_ERR: DO
M SVG Exception 0. | 145 PASS poly1.points.appendItem(null) threw exception Error: SVG_WRONG_TYPE_ERR: DO
M SVG Exception 0. |
| 140 PASS dumpPoint(poly1.points.appendItem(point)) is "x=200 y=100" | 146 PASS dumpPoint(poly1.points.appendItem(point)) is "x=200 y=100" |
| 141 PASS poly1.points.numberOfItems is 2 | 147 PASS poly1.points.numberOfItems is 2 |
| 142 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100" | 148 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100" |
| 143 PASS dumpPoint(poly1.points.getItem(1)) is "x=200 y=100" | 149 PASS dumpPoint(poly1.points.getItem(1)) is "x=200 y=100" |
| 144 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100 200 100" | 150 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100 200 100" |
| 145 PASS successfullyParsed is true | 151 PASS successfullyParsed is true |
| 146 | 152 |
| 147 TEST COMPLETE | 153 TEST COMPLETE |
| 148 | 154 |
| OLD | NEW |