Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: LayoutTests/fast/js/select-options-remove-expected.txt

Issue 23549004: Fix the HTMLSelectElement.prototype.remove() method (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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() is undefined
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') is undefined 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
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
68 PASS select1.options.length is 0 68 PASS select1.options.length is 0
69 PASS select1.selectedIndex is -1 69 PASS select1.selectedIndex is -1
70 70
71 1.14 Remove index 0 from empty Options 71 1.14 Remove index 0 from empty Options
72 PASS select1.options.remove(0) is undefined 72 PASS select1.options.remove(0) is undefined
73 PASS select1.options.length is 0 73 PASS select1.options.length is 0
74 PASS select1.selectedIndex is -1 74 PASS select1.selectedIndex is -1
75 75
76 1.15 Remove index 1 from empty Options 76 1.15 Remove index 1 from empty Options
77 PASS select1.options.remove(1) is undefined 77 PASS select1.options.remove(1) is undefined
78 PASS select1.options.length is 0 78 PASS select1.options.length is 0
79 PASS select1.selectedIndex is -1 79 PASS select1.selectedIndex is -1
80 80
81 1.16 Detach select element
82 PASS select1.parentNode is not null
83 PASS select1.remove() is undefined
84 PASS select1.parentNode is null
85
81 2.1 Remove (object) from non-empty Options 86 2.1 Remove (object) from non-empty Options
82 PASS select2.options.remove(value) is undefined 87 PASS select2.options.remove(value) is undefined
83 PASS select2.options.length is 15 88 PASS select2.options.length is 15
84 PASS select2.selectedIndex is 13 89 PASS select2.selectedIndex is 13
85 PASS select2.options[0].value is 'B' 90 PASS select2.options[0].value is 'B'
86 91
87 2.2 Remove (string) from non-empty Options 92 2.2 Remove (string) from non-empty Options
88 PASS select2.options.remove(value) is undefined 93 PASS select2.options.remove(value) is undefined
89 PASS select2.options.length is 14 94 PASS select2.options.length is 14
90 PASS select2.selectedIndex is 12 95 PASS select2.selectedIndex is 12
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 PASS select2.selectedIndex is 4 143 PASS select2.selectedIndex is 4
139 PASS select2.options[0].value is 'K' 144 PASS select2.options[0].value is 'K'
140 145
141 2.11 Remove no args from non-empty Options 146 2.11 Remove no args from non-empty Options
142 PASS select2.options.remove() is undefined 147 PASS select2.options.remove() is undefined
143 PASS select2.options.length is 5 148 PASS select2.options.length is 5
144 PASS select2.selectedIndex is 3 149 PASS select2.selectedIndex is 3
145 PASS select2.options[0].value is 'L' 150 PASS select2.options[0].value is 'L'
146 151
147 2.12 Remove too many args from non-empty Options 152 2.12 Remove too many args from non-empty Options
148 PASS select2.options.remove(0, 'foo') is undefined 153 PASS select2.options.remove(0, 'foo') threw exception TypeError: Type error.
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
149 PASS select2.options.length is 4 172 PASS select2.options.length is 4
150 PASS select2.selectedIndex is 2 173 PASS select2.selectedIndex is 2
151 PASS select2.options[0].value is 'M' 174 PASS select2.options[0].value is 'M'
152 175
153 2.13 Remove invalid index -2 from non-empty Options 176 2.16 Remove index 1 from non-empty Options
154 PASS select2.options.remove(-2) is undefined 177 PASS select2.options.remove(1) is undefined
155 PASS select2.options.length is 4
156 PASS select2.selectedIndex is 2
157 PASS select2.options[2].value is 'O'
158
159 2.14 Remove invalid index -1 from non-empty Options
160 PASS select2.options.remove(-1) is undefined
161 PASS select2.options.length is 4
162 PASS select2.selectedIndex is 2
163 PASS select2.options[3].value is 'P'
164
165 2.15 Remove index 0 from non-empty Options
166 PASS select2.options.remove(0) is undefined
167 PASS select2.options.length is 3 178 PASS select2.options.length is 3
168 PASS select2.selectedIndex is 1 179 PASS select2.selectedIndex is 1
169 PASS select2.options[0].value is 'N' 180 PASS select2.options[1].value is 'O'
170 181
171 2.16 Remove index 1 from non-empty Options 182 2.17 Detach select element
172 PASS select2.options.remove(1) is undefined 183 PASS select2.parentNode is not null
173 PASS select2.options.length is 2 184 PASS select2.remove() is undefined
174 PASS select2.selectedIndex is 0 185 PASS select2.parentNode is null
175 PASS select2.options[1].value is 'P'
176 186
177 PASS successfullyParsed is true 187 PASS successfullyParsed is true
178 188
179 TEST COMPLETE 189 TEST COMPLETE
180 190
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698