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

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

Issue 148323008: Update HTMLCollection's named property getter to behave according to spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline inpector test Created 6 years, 10 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/js-test.js"></script>
5 <a id="testLink"></a>
6 <script>
7 description("This tests verifies that HTMLCollection.namedItem() argument is man datory");
8
9 var testLink = document.getElementById("testLink");
10 var htmlCollection = document.getElementsByTagName("a");
11 shouldBe("htmlCollection.__proto__", "HTMLCollection.prototype");
12 shouldBe("htmlCollection.length", "1");
13 shouldBe("htmlCollection.namedItem('testLink')", "testLink");
14 shouldThrow("htmlCollection.namedItem()", '"TypeError: Failed to execute \'named Item\' on \'HTMLCollection\': 1 argument required, but only 0 present."');
15 </script>
16 </body>
17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698