| OLD | NEW |
| 1 This test checks the behavior of the remove() method on the select.options objec
t. | 1 This test checks the behavior of the remove() method on the select.options objec
t. |
| 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 1.1 Remove (object) from empty Options | 6 1.1 Remove (object) from empty Options |
| 7 PASS select1.options.remove(value) is undefined | 7 PASS select1.options.remove(value) is undefined |
| 8 PASS select1.options.length is 0 | 8 PASS select1.options.length is 0 |
| 9 PASS select1.selectedIndex is -1 | 9 PASS select1.selectedIndex is -1 |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 PASS select1.options.remove(value) is undefined | 42 PASS select1.options.remove(value) is undefined |
| 43 PASS select1.options.length is 0 | 43 PASS select1.options.length is 0 |
| 44 PASS select1.selectedIndex is -1 | 44 PASS select1.selectedIndex is -1 |
| 45 | 45 |
| 46 1.9 Remove (positive infinity) from empty Options | 46 1.9 Remove (positive infinity) from empty Options |
| 47 PASS select1.options.remove(value) is undefined | 47 PASS select1.options.remove(value) is undefined |
| 48 PASS select1.options.length is 0 | 48 PASS select1.options.length is 0 |
| 49 PASS select1.selectedIndex is -1 | 49 PASS select1.selectedIndex is -1 |
| 50 | 50 |
| 51 1.10 Remove no args from empty Options | 51 1.10 Remove no args from empty Options |
| 52 PASS select1.options.remove() is undefined | 52 PASS select1.options.remove() threw exception TypeError: Not enough arguments. |
| 53 PASS select1.options.length is 0 | 53 PASS select1.options.length is 0 |
| 54 PASS select1.selectedIndex is -1 | 54 PASS select1.selectedIndex is -1 |
| 55 | 55 |
| 56 1.11 Remove too many args from empty Options | 56 1.11 Remove too many args from empty Options |
| 57 PASS select1.options.remove(0, 'foo') threw exception TypeError: Type error. | 57 PASS select1.options.remove(0, 'foo') threw exception TypeError: Type error. |
| 58 PASS select1.options.length is 0 | 58 PASS select1.options.length is 0 |
| 59 PASS select1.selectedIndex is -1 | 59 PASS select1.selectedIndex is -1 |
| 60 | 60 |
| 61 1.12 Remove invalid index -2 from empty Options | 61 1.12 Remove invalid index -2 from empty Options |
| 62 PASS select1.options.remove(-2) is undefined | 62 PASS select1.options.remove(-2) is undefined |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 PASS select2.selectedIndex is 5 | 137 PASS select2.selectedIndex is 5 |
| 138 PASS select2.options[0].value is 'J' | 138 PASS select2.options[0].value is 'J' |
| 139 | 139 |
| 140 2.10 Remove (positive infinity) from non-empty Options | 140 2.10 Remove (positive infinity) from non-empty Options |
| 141 PASS select2.options.remove(value) is undefined | 141 PASS select2.options.remove(value) is undefined |
| 142 PASS select2.options.length is 6 | 142 PASS select2.options.length is 6 |
| 143 PASS select2.selectedIndex is 4 | 143 PASS select2.selectedIndex is 4 |
| 144 PASS select2.options[0].value is 'K' | 144 PASS select2.options[0].value is 'K' |
| 145 | 145 |
| 146 2.11 Remove no args from non-empty Options | 146 2.11 Remove no args from non-empty Options |
| 147 PASS select2.options.remove() is undefined | 147 PASS select2.options.remove() threw exception TypeError: Not enough arguments. |
| 148 PASS select2.options.length is 6 |
| 149 PASS select2.selectedIndex is 4 |
| 150 PASS select2.options[0].value is 'K' |
| 151 |
| 152 2.12 Remove too many args from non-empty Options |
| 153 PASS select2.options.remove(0, 'foo') threw exception TypeError: Type error. |
| 154 PASS select2.options.length is 6 |
| 155 PASS select2.selectedIndex is 4 |
| 156 PASS select2.options[0].value is 'K' |
| 157 |
| 158 2.13 Remove invalid index -2 from non-empty Options |
| 159 PASS select2.options.remove(-2) is undefined |
| 160 PASS select2.options.length is 6 |
| 161 PASS select2.selectedIndex is 4 |
| 162 PASS select2.options[2].value is 'M' |
| 163 |
| 164 2.14 Remove invalid index -1 from non-empty Options |
| 165 PASS select2.options.remove(-1) is undefined |
| 166 PASS select2.options.length is 6 |
| 167 PASS select2.selectedIndex is 4 |
| 168 PASS select2.options[3].value is 'N' |
| 169 |
| 170 2.15 Remove index 0 from non-empty Options |
| 171 PASS select2.options.remove(0) is undefined |
| 148 PASS select2.options.length is 5 | 172 PASS select2.options.length is 5 |
| 149 PASS select2.selectedIndex is 3 | 173 PASS select2.selectedIndex is 3 |
| 150 PASS select2.options[0].value is 'L' | 174 PASS select2.options[0].value is 'L' |
| 151 | 175 |
| 152 2.12 Remove too many args from non-empty Options | 176 2.16 Remove index 1 from non-empty Options |
| 153 PASS select2.options.remove(0, 'foo') threw exception TypeError: Type error. | 177 PASS select2.options.remove(1) is undefined |
| 154 PASS select2.options.length is 5 | |
| 155 PASS select2.selectedIndex is 3 | |
| 156 PASS select2.options[0].value is 'L' | |
| 157 | |
| 158 2.13 Remove invalid index -2 from non-empty Options | |
| 159 PASS select2.options.remove(-2) is undefined | |
| 160 PASS select2.options.length is 5 | |
| 161 PASS select2.selectedIndex is 3 | |
| 162 PASS select2.options[2].value is 'N' | |
| 163 | |
| 164 2.14 Remove invalid index -1 from non-empty Options | |
| 165 PASS select2.options.remove(-1) is undefined | |
| 166 PASS select2.options.length is 5 | |
| 167 PASS select2.selectedIndex is 3 | |
| 168 PASS select2.options[3].value is 'O' | |
| 169 | |
| 170 2.15 Remove index 0 from non-empty Options | |
| 171 PASS select2.options.remove(0) is undefined | |
| 172 PASS select2.options.length is 4 | 178 PASS select2.options.length is 4 |
| 173 PASS select2.selectedIndex is 2 | 179 PASS select2.selectedIndex is 2 |
| 174 PASS select2.options[0].value is 'M' | 180 PASS select2.options[1].value is 'N' |
| 175 | |
| 176 2.16 Remove index 1 from non-empty Options | |
| 177 PASS select2.options.remove(1) is undefined | |
| 178 PASS select2.options.length is 3 | |
| 179 PASS select2.selectedIndex is 1 | |
| 180 PASS select2.options[1].value is 'O' | |
| 181 | 181 |
| 182 2.17 Detach select element | 182 2.17 Detach select element |
| 183 PASS select2.parentNode is not null | 183 PASS select2.parentNode is not null |
| 184 PASS select2.remove() is undefined | 184 PASS select2.remove() is undefined |
| 185 PASS select2.parentNode is null | 185 PASS select2.parentNode is null |
| 186 | 186 |
| 187 PASS successfullyParsed is true | 187 PASS successfullyParsed is true |
| 188 | 188 |
| 189 TEST COMPLETE | 189 TEST COMPLETE |
| 190 | 190 |
| OLD | NEW |