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

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

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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() threw exception TypeError: Not enough arguments. 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: 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
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() threw exception TypeError: Not enough arguments. 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: Type error. 153 PASS select2.options.remove(0, 'foo') threw exception TypeError: Type error.
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
(...skipping 23 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/resources/select-options-remove.js ('k') | LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698