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': No function was found that matched the s
ignature provided.. | 57 PASS select1.options.remove(0, 'foo') threw exception TypeError: Failed to execu
te 'remove' on 'HTMLOptionsCollection': 1 argument required, but only 2 present.
. |
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': No function was found that matched the s
ignature provided.. | 153 PASS select2.options.remove(0, 'foo') threw exception TypeError: Failed to execu
te 'remove' on 'HTMLOptionsCollection': 1 argument required, but only 2 present.
. |
154 PASS select2.options.length is 6 | 154 PASS select2.options.length is 6 |
155 PASS select2.selectedIndex is 4 | 155 PASS select2.selectedIndex is 4 |
156 PASS select2.options[0].value is 'K' | 156 PASS select2.options[0].value is 'K' |
157 | 157 |
158 2.13 Remove invalid index -2 from non-empty Options | 158 2.13 Remove invalid index -2 from non-empty Options |
159 PASS select2.options.remove(-2) is undefined | 159 PASS select2.options.remove(-2) is undefined |
160 PASS select2.options.length is 6 | 160 PASS select2.options.length is 6 |
161 PASS select2.selectedIndex is 4 | 161 PASS select2.selectedIndex is 4 |
162 PASS select2.options[2].value is 'M' | 162 PASS select2.options[2].value is 'M' |
163 | 163 |
(...skipping 17 matching lines...) Expand all Loading... |
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 |