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

Side by Side Diff: LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument-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 Tests that the HTMLSelectElement.item() argument is correctly validated. 1 Tests that the HTMLSelectElement.item() argument is correctly validated.
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 PASS select.__proto__ is HTMLSelectElement.prototype 6 PASS select.__proto__ is HTMLSelectElement.prototype
7 PASS select.item(0).value is "a" 7 PASS select.item(0).value is "a"
8 PASS select.item(1).value is "b" 8 PASS select.item(1).value is "b"
9 PASS select.item(2).value is "c" 9 PASS select.item(2).value is "c"
10 PASS select.item(3).value is "d" 10 PASS select.item(3).value is "d"
11 PASS select.item(4) is null 11 PASS select.item(4) is null
12 PASS select.item(-1) is null 12 PASS select.item(-1) is null
13 PASS select.item(-4294967294).value is "c" 13 PASS select.item(-4294967294).value is "c"
14 PASS select.item() threw exception TypeError: Not enough arguments. 14 PASS select.item() threw exception TypeError: Failed to execute 'item' on 'HTMLS electElement': 1 argument required, but only 0 present..
15 PASS successfullyParsed is true 15 PASS successfullyParsed is true
16 16
17 TEST COMPLETE 17 TEST COMPLETE
18 18
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698