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

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

Issue 284163002: Better arity checks for overloads (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Return properly Created 6 years, 7 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() 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
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
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/canvas/webgl/texImageTest-expected.txt ('k') | LayoutTests/vibration/vibration-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698