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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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() threw exception TypeError: Failed to execute 'remo
ve' on 'HTMLOptionsCollection': 1 argument required, but only 0 present.. | 52 PASS select1.options.remove() threw exception TypeError: Failed to execute 'remo
ve' on 'HTMLOptionsCollection': 1 argument required, but only 0 present.. |
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: Failed to execu
te 'remove' on 'HTMLOptionsCollection': 1 argument required, but only 2 present.
. | 57 PASS select1.options.remove(0, 'foo') is undefined |
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 |
63 PASS select1.options.length is 0 | 63 PASS select1.options.length is 0 |
64 PASS select1.selectedIndex is -1 | 64 PASS select1.selectedIndex is -1 |
65 | 65 |
66 1.13 Remove invalid index -1 from empty Options | 66 1.13 Remove invalid index -1 from empty Options |
67 PASS select1.options.remove(-1) is undefined | 67 PASS select1.options.remove(-1) is undefined |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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() threw exception TypeError: Failed to execute 'remo
ve' on 'HTMLOptionsCollection': 1 argument required, but only 0 present.. | 147 PASS select2.options.remove() threw exception TypeError: Failed to execute 'remo
ve' on 'HTMLOptionsCollection': 1 argument required, but only 0 present.. |
148 PASS select2.options.length is 6 | 148 PASS select2.options.length is 6 |
149 PASS select2.selectedIndex is 4 | 149 PASS select2.selectedIndex is 4 |
150 PASS select2.options[0].value is 'K' | 150 PASS select2.options[0].value is 'K' |
151 | 151 |
152 2.12 Remove too many args from non-empty Options | 152 2.12 Remove too many args from non-empty Options |
153 PASS select2.options.remove(0, 'foo') threw exception TypeError: Failed to execu
te 'remove' on 'HTMLOptionsCollection': 1 argument required, but only 2 present.
. | 153 PASS select2.options.remove(0, 'foo') is undefined |
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 | |
172 PASS select2.options.length is 5 | 154 PASS select2.options.length is 5 |
173 PASS select2.selectedIndex is 3 | 155 PASS select2.selectedIndex is 3 |
174 PASS select2.options[0].value is 'L' | 156 PASS select2.options[0].value is 'L' |
175 | 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 |
| 173 PASS select2.selectedIndex is 2 |
| 174 PASS select2.options[0].value is 'M' |
| 175 |
176 2.16 Remove index 1 from non-empty Options | 176 2.16 Remove index 1 from non-empty Options |
177 PASS select2.options.remove(1) is undefined | 177 PASS select2.options.remove(1) is undefined |
178 PASS select2.options.length is 4 | 178 PASS select2.options.length is 3 |
179 PASS select2.selectedIndex is 2 | 179 PASS select2.selectedIndex is 1 |
180 PASS select2.options[1].value is 'N' | 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 |