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

Side by Side Diff: LayoutTests/fast/forms/select/select-add-expected.txt

Issue 213773003: select.add() should support optgroup adding and before index (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
(Empty)
1 Test select.add() method
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Test select
7 PASS addOption(0) is "X,0,1,2"
8 PASS addOption(1) is "0,X,1,2"
9 PASS addOption(2) is "0,1,X,2"
10 PASS addOption(3) is "0,1,2,X"
11 PASS addOption(100) is "0,1,2,X"
12 PASS addOption(-100) is "0,1,2,X"
13 PASS getSelectOptions() is "0,1,2,X"
14 PASS addOption(null) is "0,1,2,X"
15 PASS addOption(NaN) is "X,0,1,2"
16 PASS addOption(Infinity) is "X,0,1,2"
17 PASS addOption(-Infinity) is "X,0,1,2"
18 PASS addOption("foo") is "X,0,1,2"
19 PASS select.add() threw exception TypeError: Failed to execute 'add' on 'HTMLSel ectElement': 1 argument required, but only 0 present..
20 PASS select.add("foo") threw exception TypeError: Failed to execute 'add' on 'HT MLSelectElement': No function was found that matched the signature provided..
21 PASS select.add("foo", 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
22 PASS select.add(null) threw exception TypeError: Failed to execute 'add' on 'HTM LSelectElement': No function was found that matched the signature provided..
23 PASS select.add(null, 0) threw exception TypeError: Failed to execute 'add' on ' HTMLSelectElement': No function was found that matched the signature provided..
24 PASS getSelectOptions() is "0,X,Y,1,2"
25 Test select multiple
26 PASS addOption(0) is "X,0,1,2"
27 PASS addOption(1) is "0,X,1,2"
28 PASS addOption(2) is "0,1,X,2"
29 PASS addOption(3) is "0,1,2,X"
30 PASS addOption(100) is "0,1,2,X"
31 PASS addOption(-100) is "0,1,2,X"
32 PASS getSelectOptions() is "0,1,2,X"
33 PASS addOption(null) is "0,1,2,X"
34 PASS addOption(NaN) is "X,0,1,2"
35 PASS addOption(Infinity) is "X,0,1,2"
36 PASS addOption(-Infinity) is "X,0,1,2"
37 PASS addOption("foo") is "X,0,1,2"
38 PASS select.add() threw exception TypeError: Failed to execute 'add' on 'HTMLSel ectElement': 1 argument required, but only 0 present..
39 PASS select.add("foo") threw exception TypeError: Failed to execute 'add' on 'HT MLSelectElement': No function was found that matched the signature provided..
40 PASS select.add("foo", 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
41 PASS select.add(null) threw exception TypeError: Failed to execute 'add' on 'HTM LSelectElement': No function was found that matched the signature provided..
42 PASS select.add(null, 0) threw exception TypeError: Failed to execute 'add' on ' HTMLSelectElement': No function was found that matched the signature provided..
43 PASS getSelectOptions() is "0,X,Y,1,2"
44 PASS successfullyParsed is true
45
46 TEST COMPLETE
47
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/select/select-add.html ('k') | Source/core/html/HTMLOptionsCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698