| OLD | NEW |
| 1 ABC | 1 ABC |
| 2 ABC | 2 ABC |
| 3 ABC | 3 ABC |
| 4 ABC | 4 ABC |
| 5 ABC | 5 ABC |
| 6 This is a test of the SVGLengthList::replaceItem() API. | 6 This is a test of the SVGLengthList::replaceItem() API. |
| 7 | 7 |
| 8 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 8 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 9 | 9 |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 Verify that the text1 x value list is correct | 33 Verify that the text1 x value list is correct |
| 34 PASS text1.x.baseVal.numberOfItems is 3 | 34 PASS text1.x.baseVal.numberOfItems is 3 |
| 35 PASS text1.x.baseVal.getItem(0).value is 50 | 35 PASS text1.x.baseVal.getItem(0).value is 50 |
| 36 PASS text1.x.baseVal.getItem(1).value is 100 | 36 PASS text1.x.baseVal.getItem(1).value is 100 |
| 37 PASS text1.x.baseVal.getItem(2).value is 150 | 37 PASS text1.x.baseVal.getItem(2).value is 150 |
| 38 | 38 |
| 39 Check initial list state of text2 | 39 Check initial list state of text2 |
| 40 PASS text2.x.baseVal.numberOfItems is 4 | 40 PASS text2.x.baseVal.numberOfItems is 4 |
| 41 PASS text2.x.baseVal.getItem(0).value is 500 | 41 PASS text2.x.baseVal.getItem(0).value is 500 |
| 42 PASS text2.x.baseVal.getItem(1).value is 100 | 42 PASS text2.x.baseVal.getItem(1).value is 100 |
| 43 PASS text2.x.baseVal.getItem(2).value is 50 | 43 PASS text2.x.baseVal.getItem(2).value is 150 |
| 44 PASS text2.x.baseVal.getItem(3).value is 150 | 44 PASS text2.x.baseVal.getItem(3).value is 50 |
| 45 PASS text2.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. | 45 PASS text2.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. |
| 46 | 46 |
| 47 Replace the first item in text2 x list with the third item in the list | 47 Replace the first item in text2 x list with the fourth item in the list |
| 48 PASS text2.x.baseVal.replaceItem(text2.x.baseVal.getItem(2), 0).value is 50 | 48 PASS text2.x.baseVal.replaceItem(text2.x.baseVal.getItem(3), 0).value is 50 |
| 49 PASS text2.x.baseVal.numberOfItems is 3 | 49 PASS text2.x.baseVal.numberOfItems is 4 |
| 50 PASS text2.x.baseVal.getItem(0).value is 50 | 50 PASS text2.x.baseVal.getItem(0).value is 50 |
| 51 PASS text2.x.baseVal.getItem(1).value is 100 | 51 PASS text2.x.baseVal.getItem(1).value is 100 |
| 52 PASS text2.x.baseVal.getItem(2).value is 150 | 52 PASS text2.x.baseVal.getItem(2).value is 150 |
| 53 PASS text2.x.baseVal.getItem(3).value is 50 |
| 53 | 54 |
| 54 Check initial list state of text3 | 55 Check initial list state of text3 |
| 55 PASS text3.x.baseVal.numberOfItems is 5 | 56 PASS text3.x.baseVal.numberOfItems is 5 |
| 56 PASS text3.x.baseVal.getItem(0).value is 50 | 57 PASS text3.x.baseVal.getItem(0).value is 50 |
| 57 PASS text3.x.baseVal.getItem(1).value is 50 | 58 PASS text3.x.baseVal.getItem(1).value is 50 |
| 58 PASS text3.x.baseVal.getItem(2).value is 100 | 59 PASS text3.x.baseVal.getItem(2).value is 100 |
| 59 PASS text3.x.baseVal.getItem(3).value is 100 | 60 PASS text3.x.baseVal.getItem(3).value is 100 |
| 60 PASS text3.x.baseVal.getItem(4).value is 150 | 61 PASS text3.x.baseVal.getItem(4).value is 150 |
| 61 PASS text3.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal
to the maximum bound (5).. | 62 PASS text3.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal
to the maximum bound (5).. |
| 62 | 63 |
| 63 Check initial list state of text4 | 64 Check initial list state of text4 |
| 64 PASS text4.x.baseVal.numberOfItems is 4 | 65 PASS text4.x.baseVal.numberOfItems is 4 |
| 65 PASS text4.x.baseVal.getItem(0).value is 100 | 66 PASS text4.x.baseVal.getItem(0).value is 100 |
| 66 PASS text4.x.baseVal.getItem(1).value is 50 | 67 PASS text4.x.baseVal.getItem(1).value is 50 |
| 67 PASS text4.x.baseVal.getItem(2).value is 150 | 68 PASS text4.x.baseVal.getItem(2).value is 150 |
| 68 PASS text4.x.baseVal.getItem(3).value is 150 | 69 PASS text4.x.baseVal.getItem(3).value is 150 |
| 69 PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. | 70 PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. |
| 70 | 71 |
| 71 Replace the first item in text4 x list with the second item in the text3 x list | 72 Replace the first item in text4 x list with the second item in the text3 x list |
| 72 PASS text4.x.baseVal.replaceItem(text3.x.baseVal.getItem(1), 0).value is 50 | 73 PASS text4.x.baseVal.replaceItem(text3.x.baseVal.getItem(1), 0).value is 50 |
| 73 PASS text3.x.baseVal.numberOfItems is 4 | 74 PASS text3.x.baseVal.numberOfItems is 5 |
| 74 PASS text3.x.baseVal.getItem(0).value is 50 | 75 PASS text3.x.baseVal.getItem(0).value is 50 |
| 75 PASS text3.x.baseVal.getItem(1).value is 100 | 76 PASS text3.x.baseVal.getItem(1).value is 50 |
| 76 PASS text3.x.baseVal.getItem(2).value is 100 | 77 PASS text3.x.baseVal.getItem(2).value is 100 |
| 77 PASS text3.x.baseVal.getItem(3).value is 150 | 78 PASS text3.x.baseVal.getItem(3).value is 100 |
| 78 PASS text3.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. | 79 PASS text3.x.baseVal.getItem(4).value is 150 |
| 80 PASS text3.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal
to the maximum bound (5).. |
| 79 PASS text4.x.baseVal.numberOfItems is 4 | 81 PASS text4.x.baseVal.numberOfItems is 4 |
| 80 PASS text4.x.baseVal.getItem(0).value is 50 | 82 PASS text4.x.baseVal.getItem(0).value is 50 |
| 81 PASS text4.x.baseVal.getItem(1).value is 50 | 83 PASS text4.x.baseVal.getItem(1).value is 50 |
| 82 PASS text4.x.baseVal.getItem(2).value is 150 | 84 PASS text4.x.baseVal.getItem(2).value is 150 |
| 83 PASS text4.x.baseVal.getItem(3).value is 150 | 85 PASS text4.x.baseVal.getItem(3).value is 150 |
| 84 PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. | 86 PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. |
| 85 | 87 |
| 86 Replace the second item in text4 x list with the second item in the text4 x list | 88 Replace the second item in text4 x list with the second item in the text4 x list |
| 87 PASS text4.x.baseVal.replaceItem(text3.x.baseVal.getItem(2), 1).value is 100 | 89 PASS text4.x.baseVal.replaceItem(text3.x.baseVal.getItem(2), 1).value is 100 |
| 88 PASS text4.x.baseVal.numberOfItems is 4 | 90 PASS text4.x.baseVal.numberOfItems is 4 |
| 89 PASS text4.x.baseVal.getItem(0).value is 50 | 91 PASS text4.x.baseVal.getItem(0).value is 50 |
| 90 PASS text4.x.baseVal.getItem(1).value is 100 | 92 PASS text4.x.baseVal.getItem(1).value is 100 |
| 91 PASS text4.x.baseVal.getItem(2).value is 150 | 93 PASS text4.x.baseVal.getItem(2).value is 150 |
| 92 PASS text4.x.baseVal.getItem(3).value is 150 | 94 PASS text4.x.baseVal.getItem(3).value is 150 |
| 93 PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. | 95 PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. |
| 94 | 96 |
| 97 Replace the items of text3 x list with the same text3 x list |
| 98 PASS text3.x.baseVal.replaceItem(text3.x.baseVal.getItem(2), 1).value is 100 |
| 99 PASS text3.x.baseVal.replaceItem(text3.x.baseVal.getItem(4), 2).value is 150 |
| 100 PASS text3.x.baseVal.numberOfItems is 5 |
| 101 PASS text3.x.baseVal.getItem(0).value is 50 |
| 102 PASS text3.x.baseVal.getItem(1).value is 100 |
| 103 PASS text3.x.baseVal.getItem(2).value is 150 |
| 104 PASS text3.x.baseVal.getItem(3).value is 100 |
| 105 PASS text3.x.baseVal.getItem(4).value is 150 |
| 106 PASS text3.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal
to the maximum bound (5).. |
| 107 |
| 95 Check final list state of text1 | 108 Check final list state of text1 |
| 96 PASS text1.x.baseVal.numberOfItems is 3 | 109 PASS text1.x.baseVal.numberOfItems is 3 |
| 97 PASS text1.x.baseVal.getItem(0).value is 50 | 110 PASS text1.x.baseVal.getItem(0).value is 50 |
| 98 PASS text1.x.baseVal.getItem(1).value is 100 | 111 PASS text1.x.baseVal.getItem(1).value is 100 |
| 99 PASS text1.x.baseVal.getItem(2).value is 150 | 112 PASS text1.x.baseVal.getItem(2).value is 150 |
| 100 PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal
to the maximum bound (3).. | 113 PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal
to the maximum bound (3).. |
| 101 | 114 |
| 102 Check final list state of text2 | 115 Check final list state of text2 |
| 103 PASS text2.x.baseVal.numberOfItems is 3 | 116 PASS text2.x.baseVal.numberOfItems is 4 |
| 104 PASS text2.x.baseVal.getItem(0).value is 50 | 117 PASS text2.x.baseVal.getItem(0).value is 50 |
| 105 PASS text2.x.baseVal.getItem(1).value is 100 | 118 PASS text2.x.baseVal.getItem(1).value is 100 |
| 106 PASS text2.x.baseVal.getItem(2).value is 150 | 119 PASS text2.x.baseVal.getItem(2).value is 150 |
| 107 PASS text2.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal
to the maximum bound (3).. | 120 PASS text2.x.baseVal.getItem(3).value is 50 |
| 121 PASS text2.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. |
| 108 | 122 |
| 109 Check final list state of text3 | 123 Check final list state of text3 |
| 110 PASS text3.x.baseVal.numberOfItems is 3 | 124 PASS text3.x.baseVal.numberOfItems is 5 |
| 111 PASS text3.x.baseVal.getItem(0).value is 50 | 125 PASS text3.x.baseVal.getItem(0).value is 50 |
| 112 PASS text3.x.baseVal.getItem(1).value is 100 | 126 PASS text3.x.baseVal.getItem(1).value is 100 |
| 113 PASS text3.x.baseVal.getItem(2).value is 150 | 127 PASS text3.x.baseVal.getItem(2).value is 150 |
| 114 PASS text3.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal
to the maximum bound (3).. | 128 PASS text3.x.baseVal.getItem(3).value is 100 |
| 129 PASS text3.x.baseVal.getItem(4).value is 150 |
| 130 PASS text3.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal
to the maximum bound (5).. |
| 115 | 131 |
| 116 Check final list state of text4 | 132 Check final list state of text4 |
| 117 PASS text4.x.baseVal.numberOfItems is 4 | 133 PASS text4.x.baseVal.numberOfItems is 4 |
| 118 PASS text4.x.baseVal.getItem(0).value is 50 | 134 PASS text4.x.baseVal.getItem(0).value is 50 |
| 119 PASS text4.x.baseVal.getItem(1).value is 100 | 135 PASS text4.x.baseVal.getItem(1).value is 100 |
| 120 PASS text4.x.baseVal.getItem(2).value is 150 | 136 PASS text4.x.baseVal.getItem(2).value is 150 |
| 121 PASS text4.x.baseVal.getItem(3).value is 150 | 137 PASS text4.x.baseVal.getItem(3).value is 150 |
| 122 PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. | 138 PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal
to the maximum bound (4).. |
| 123 | 139 |
| 124 The test passes if you only see 'PASS' messages, and all five text elements on t
op look the same | 140 The test passes if you only see 'PASS' messages, and all five text elements on t
op look the same |
| 125 | 141 |
| 126 PASS successfullyParsed is true | 142 PASS successfullyParsed is true |
| 127 | 143 |
| 128 TEST COMPLETE | 144 TEST COMPLETE |
| 129 | 145 |
| OLD | NEW |