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

Side by Side Diff: LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt

Issue 1292653003: [bindings] Avoid using custom binding for HTMLOptionsCollection.length attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Aligned with maxSelectedItems value Created 5 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 unified diff | Download patch
OLDNEW
1 1
2 1) setting length to a negative length 2 1) setting length to a negative length
3 PASS mySelect.options.length = -1; threw exception IndexSizeError: Failed to set the 'length' property on 'HTMLOptionsCollection': The value provided (-1) is ne gative. Lengths must be greater than or equal to 0..
4 PASS mySelect.options.length is 2 3 PASS mySelect.options.length is 2
5 PASS mySelect.selectedIndex is 1 4 PASS mySelect.selectedIndex is 1
6 2) setting length to a larger length 5 2) setting length to a larger length
7 PASS mySelect.options.length is 5 6 PASS mySelect.options.length is 5
8 PASS mySelect.selectedIndex is 1 7 PASS mySelect.selectedIndex is 1
9 3) setting length to a smaller length 8 3) setting length to a smaller length
10 PASS mySelect.options.length is 2 9 PASS mySelect.options.length is 2
11 PASS mySelect.selectedIndex is 1 10 PASS mySelect.selectedIndex is 1
12 PASS mySelect.options.length is 1 11 PASS mySelect.options.length is 1
13 PASS mySelect.selectedIndex is -1 12 PASS mySelect.selectedIndex is -1
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 PASS mySelect.selectedIndex is -1 70 PASS mySelect.selectedIndex is -1
72 23) trying to add a non-option element 71 23) trying to add a non-option element
73 PASS mySelect.options.add({}) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The provided value is not of type '(HTMLOptionEleme nt or HTMLOptGroupElement)'. 72 PASS mySelect.options.add({}) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The provided value is not of type '(HTMLOptionEleme nt or HTMLOptGroupElement)'.
74 PASS mySelect.options.length is 10 73 PASS mySelect.options.length is 10
75 PASS mySelect.selectedIndex is -1 74 PASS mySelect.selectedIndex is -1
76 75
77 PASS successfullyParsed is true 76 PASS successfullyParsed is true
78 77
79 TEST COMPLETE 78 TEST COMPLETE
80 79
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698