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

Unified Diff: LayoutTests/fast/dom/HTMLOptionElement/collection-setter-getter-expected.txt

Issue 143943020: Replace [TreatNullAs=functionName] with [StrictTypeChecking] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update tests, Python, and IDLExtendedAttributes.txt Created 6 years, 11 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/HTMLOptionElement/collection-setter-getter-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLOptionElement/collection-setter-getter-expected.txt b/LayoutTests/fast/dom/HTMLOptionElement/collection-setter-getter-expected.txt
index 781554637fca7347154ad58027f24d199266d11d..53f5996c81215a71c3e14a2d38b593418485c3b7 100644
--- a/LayoutTests/fast/dom/HTMLOptionElement/collection-setter-getter-expected.txt
+++ b/LayoutTests/fast/dom/HTMLOptionElement/collection-setter-getter-expected.txt
@@ -3,9 +3,18 @@ Tests the indexed setter and getter for HTMLOptionsCollection.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS my_form.set_sel.options.length is 3
-PASS options[0] is document.getElementById('one')
-PASS options[1] is document.getElementById('two')
+1) getting options by index or by getElementById
+PASS get_options[0] is document.getElementById("one")
+PASS get_options[1] is document.getElementById("two")
+2) setting a few elements to Option values
+PASS set_options.length is 3
+3) trying to set an element to a non-Option value: undefined
+PASS set_options.length is 3
+4) trying to set an element to a non-Option value: null
+PASS set_options.length is 3
+5) trying to set an element to a non-Option value: form (object of incorrect type)
+PASS set_options[10] = my_form threw exception TypeError: The provided value is not of type 'HTMLOptionElement'..
+PASS set_options.length is 3
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698