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

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: Missed to fix the test case! 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 21) trying to set a option element using an invalid index: NaN 65 21) trying to set a option element using an invalid index: NaN
67 PASS mySelect.options.length is 10 66 PASS mySelect.options.length is 10
68 PASS mySelect.selectedIndex is -1 67 PASS mySelect.selectedIndex is -1
69 22) trying to set a option element using an invalid index: positive infinity 68 22) trying to set a option element using an invalid index: positive infinity
70 PASS mySelect.options.length is 10 69 PASS mySelect.options.length is 10
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
75 24) setting length to a value greater than 10000
76 PASS mySelect.options.length is 10
77 PASS mySelect.selectedIndex is -1
76 78
77 PASS successfullyParsed is true 79 PASS successfullyParsed is true
78 80
79 TEST COMPLETE 81 TEST COMPLETE
80 82
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698