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

Side by Side Diff: LayoutTests/fast/dom/html-collections-named-getter-mandatory-arg-expected.txt

Issue 1242233002: The index argument for HTMLCollection item() api should not be optional (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
OLDNEW
1 This tests verifies that HTMLCollection.namedItem() argument is mandatory 1 This tests verifies that HTMLCollection.namedItem() argument is mandatory
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 htmlCollection.__proto__ is HTMLCollection.prototype 6 PASS htmlCollection.__proto__ is HTMLCollection.prototype
7 PASS htmlCollection.length is 1 7 PASS htmlCollection.length is 1
8 PASS htmlCollection.namedItem('testLink') is testLink 8 PASS htmlCollection.namedItem('testLink') is testLink
9 PASS htmlCollection.namedItem() threw exception TypeError: Failed to execute 'na medItem' on 'HTMLCollection': 1 argument required, but only 0 present.. 9 PASS htmlCollection.namedItem() threw exception TypeError: Failed to execute 'na medItem' on 'HTMLCollection': 1 argument required, but only 0 present..
10 PASS htmlCollection.item() threw exception TypeError: Failed to execute 'item' o n 'HTMLCollection': 1 argument required, but only 0 present..
10 PASS successfullyParsed is true 11 PASS successfullyParsed is true
11 12
12 TEST COMPLETE 13 TEST COMPLETE
13 14
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698