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

Unified Diff: LayoutTests/fast/dom/nodelist-item-parameter-expected.txt

Issue 21766002: NodeList.item() does not behave according to specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify link tag Created 7 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/nodelist-item-parameter-expected.txt
diff --git a/LayoutTests/fast/dom/nodelist-item-parameter-expected.txt b/LayoutTests/fast/dom/nodelist-item-parameter-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..867646c69542465530c46fc6ac4eaa5ad70739f3
--- /dev/null
+++ b/LayoutTests/fast/dom/nodelist-item-parameter-expected.txt
@@ -0,0 +1,16 @@
+Tests that the NodeList.item() argument is correctly validated.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS nodeList.__proto__ is NodeList.prototype
+PASS nodeList.item(0).id is "a"
+PASS nodeList.item(1).id is "b"
+PASS nodeList.item(2) is null
+PASS nodeList.item(-1) is null
+PASS nodeList.item(-4294967295).id is "b"
+PASS nodeList.item() threw exception TypeError: Not enough arguments.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698