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

Side by Side Diff: LayoutTests/fast/dom/nodelist-item-parameter-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 NodeList.item() argument is correctly validated. 1 Tests that the NodeList.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 nodeList.__proto__ is NodeList.prototype 6 PASS nodeList.__proto__ is NodeList.prototype
7 PASS nodeList.item(0).id is "a" 7 PASS nodeList.item(0).id is "a"
8 PASS nodeList.item(1).id is "b" 8 PASS nodeList.item(1).id is "b"
9 PASS nodeList.item(2) is null 9 PASS nodeList.item(2) is null
10 PASS nodeList.item(-1) is null 10 PASS nodeList.item(-1) is null
11 PASS nodeList.item(-4294967295).id is "b" 11 PASS nodeList.item(-4294967295).id is "b"
12 PASS nodeList.item() threw exception TypeError: Not enough arguments. 12 PASS nodeList.item() threw exception TypeError: Failed to execute 'item' on 'Nod eList': 1 argument required, but only 0 present..
13 PASS successfullyParsed is true 13 PASS successfullyParsed is true
14 14
15 TEST COMPLETE 15 TEST COMPLETE
16 16
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698