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

Side by Side 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, 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
1 Tests the indexed setter and getter for HTMLOptionsCollection. 1 Tests the indexed setter and getter for HTMLOptionsCollection.
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 my_form.set_sel.options.length is 3 6 1) getting options by index or by getElementById
7 PASS options[0] is document.getElementById('one') 7 PASS get_options[0] is document.getElementById("one")
8 PASS options[1] is document.getElementById('two') 8 PASS get_options[1] is document.getElementById("two")
9 2) setting a few elements to Option values
10 PASS set_options.length is 3
11 3) trying to set an element to a non-Option value: undefined
12 PASS set_options.length is 3
13 4) trying to set an element to a non-Option value: null
14 PASS set_options.length is 3
15 5) trying to set an element to a non-Option value: form (object of incorrect typ e)
16 PASS set_options[10] = my_form threw exception TypeError: The provided value is not of type 'HTMLOptionElement'..
17 PASS set_options.length is 3
9 PASS successfullyParsed is true 18 PASS successfullyParsed is true
10 19
11 TEST COMPLETE 20 TEST COMPLETE
12 21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698