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

Unified Diff: LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument-expected.txt

Issue 21834002: HTMLSelectElement.item() does not behave according to specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move test as advised Created 7 years, 4 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/HTMLSelectElement/select-element-item-argument-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument-expected.txt b/LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..eb9564617facd5e0ef7e97bcac1d20fd6006b075
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument-expected.txt
@@ -0,0 +1,18 @@
+Tests that the HTMLSelectElement.item() argument is correctly validated.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS select.__proto__ is HTMLSelectElement.prototype
+PASS select.item(0).value is "a"
+PASS select.item(1).value is "b"
+PASS select.item(2).value is "c"
+PASS select.item(3).value is "d"
+PASS select.item(4) is null
+PASS select.item(-1) is null
+PASS select.item(-4294967294).value is "c"
+PASS select.item() threw exception TypeError: Not enough arguments.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698