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

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

Issue 879273002: Adding tests for HTMLSelect add() api (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
OLDNEW
1 Test select.add() method 1 Test select.add() method
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 Test select 6 Test select
7 PASS addOption(0) is "X,0,1,2" 7 PASS addOption(0) is "X,0,1,2"
8 PASS addOption(1) is "0,X,1,2" 8 PASS addOption(1) is "0,X,1,2"
9 PASS addOption(2) is "0,1,X,2" 9 PASS addOption(2) is "0,1,X,2"
10 PASS addOption(3) is "0,1,2,X" 10 PASS addOption(3) is "0,1,2,X"
11 PASS addOption(100) is "0,1,2,X" 11 PASS addOption(100) is "0,1,2,X"
12 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" 13 PASS getSelectOptions() is "0,1,2,X"
14 PASS addOption(undefined) is "0,1,2,X" 14 PASS addOption(undefined) is "0,1,2,X"
15 PASS addOption(null) is "0,1,2,X" 15 PASS addOption(null) is "0,1,2,X"
16 PASS addOption(NaN) is "X,0,1,2" 16 PASS addOption(NaN) is "X,0,1,2"
17 PASS addOption(Infinity) is "X,0,1,2" 17 PASS addOption(Infinity) is "X,0,1,2"
18 PASS addOption(-Infinity) is "X,0,1,2" 18 PASS addOption(-Infinity) is "X,0,1,2"
19 PASS addOption("foo") is "X,0,1,2" 19 PASS addOption("foo") is "X,0,1,2"
20 PASS addOption("0") is "X,0,1,2"
21 PASS addOption("1") is "0,X,1,2"
22 PASS addOption(false) is "X,0,1,2"
23 PASS addOption(true) is "0,X,1,2"
24 PASS addOption(2147483647) is "0,1,2,X"
25 PASS addOption(-2147483647) is "0,1,2,X"
26 PASS addOption(2147483648) is "0,1,2,X"
27 PASS addOption(-2147483648) is "0,1,2,X"
20 PASS select.add() threw exception TypeError: Failed to execute 'add' on 'HTMLSel ectElement': 1 argument required, but only 0 present.. 28 PASS select.add() threw exception TypeError: Failed to execute 'add' on 'HTMLSel ectElement': 1 argument required, but only 0 present..
21 PASS select.add("foo") threw exception TypeError: Failed to execute 'add' on 'HT MLSelectElement': The provided value is not of type '(HTMLOptionElement or HTMLO ptGroupElement)'. 29 PASS select.add("foo") threw exception TypeError: Failed to execute 'add' on 'HT MLSelectElement': The provided value is not of type '(HTMLOptionElement or HTMLO ptGroupElement)'.
22 PASS select.add("foo", 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or HT MLOptGroupElement)'. 30 PASS select.add("foo", 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or HT MLOptGroupElement)'.
23 PASS select.add(undefined) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or H TMLOptGroupElement)'. 31 PASS select.add(undefined) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or H TMLOptGroupElement)'.
24 PASS select.add(undefined, 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement o r HTMLOptGroupElement)'. 32 PASS select.add(undefined, 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement o r HTMLOptGroupElement)'.
25 PASS select.add(null) threw exception TypeError: Failed to execute 'add' on 'HTM LSelectElement': The provided value is not of type '(HTMLOptionElement or HTMLOp tGroupElement)'. 33 PASS select.add(null) threw exception TypeError: Failed to execute 'add' on 'HTM LSelectElement': The provided value is not of type '(HTMLOptionElement or HTMLOp tGroupElement)'.
26 PASS select.add(null, 0) threw exception TypeError: Failed to execute 'add' on ' HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or HTM LOptGroupElement)'. 34 PASS select.add(null, 0) threw exception TypeError: Failed to execute 'add' on ' HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or HTM LOptGroupElement)'.
35 PASS select.add(new Option("X", "X", false, false), 0, 1) is undefined.
36 PASS select.add(new Option("X", "X", false, false), select.options[0], 2) is und efined.
27 PASS getSelectOptions() is "0,X,Y,1,2" 37 PASS getSelectOptions() is "0,X,Y,1,2"
28 Test select multiple 38 Test select multiple
29 PASS addOption(0) is "X,0,1,2" 39 PASS addOption(0) is "X,0,1,2"
30 PASS addOption(1) is "0,X,1,2" 40 PASS addOption(1) is "0,X,1,2"
31 PASS addOption(2) is "0,1,X,2" 41 PASS addOption(2) is "0,1,X,2"
32 PASS addOption(3) is "0,1,2,X" 42 PASS addOption(3) is "0,1,2,X"
33 PASS addOption(100) is "0,1,2,X" 43 PASS addOption(100) is "0,1,2,X"
34 PASS addOption(-100) is "0,1,2,X" 44 PASS addOption(-100) is "0,1,2,X"
35 PASS getSelectOptions() is "0,1,2,X" 45 PASS getSelectOptions() is "0,1,2,X"
36 PASS addOption(undefined) is "0,1,2,X" 46 PASS addOption(undefined) is "0,1,2,X"
37 PASS addOption(null) is "0,1,2,X" 47 PASS addOption(null) is "0,1,2,X"
38 PASS addOption(NaN) is "X,0,1,2" 48 PASS addOption(NaN) is "X,0,1,2"
39 PASS addOption(Infinity) is "X,0,1,2" 49 PASS addOption(Infinity) is "X,0,1,2"
40 PASS addOption(-Infinity) is "X,0,1,2" 50 PASS addOption(-Infinity) is "X,0,1,2"
41 PASS addOption("foo") is "X,0,1,2" 51 PASS addOption("foo") is "X,0,1,2"
52 PASS addOption("0") is "X,0,1,2"
53 PASS addOption("1") is "0,X,1,2"
54 PASS addOption(false) is "X,0,1,2"
55 PASS addOption(true) is "0,X,1,2"
56 PASS addOption(2147483647) is "0,1,2,X"
57 PASS addOption(-2147483647) is "0,1,2,X"
58 PASS addOption(2147483648) is "0,1,2,X"
59 PASS addOption(-2147483648) is "0,1,2,X"
42 PASS select.add() threw exception TypeError: Failed to execute 'add' on 'HTMLSel ectElement': 1 argument required, but only 0 present.. 60 PASS select.add() threw exception TypeError: Failed to execute 'add' on 'HTMLSel ectElement': 1 argument required, but only 0 present..
43 PASS select.add("foo") threw exception TypeError: Failed to execute 'add' on 'HT MLSelectElement': The provided value is not of type '(HTMLOptionElement or HTMLO ptGroupElement)'. 61 PASS select.add("foo") threw exception TypeError: Failed to execute 'add' on 'HT MLSelectElement': The provided value is not of type '(HTMLOptionElement or HTMLO ptGroupElement)'.
44 PASS select.add("foo", 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or HT MLOptGroupElement)'. 62 PASS select.add("foo", 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or HT MLOptGroupElement)'.
45 PASS select.add(undefined) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or H TMLOptGroupElement)'. 63 PASS select.add(undefined) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or H TMLOptGroupElement)'.
46 PASS select.add(undefined, 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement o r HTMLOptGroupElement)'. 64 PASS select.add(undefined, 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement o r HTMLOptGroupElement)'.
47 PASS select.add(null) threw exception TypeError: Failed to execute 'add' on 'HTM LSelectElement': The provided value is not of type '(HTMLOptionElement or HTMLOp tGroupElement)'. 65 PASS select.add(null) threw exception TypeError: Failed to execute 'add' on 'HTM LSelectElement': The provided value is not of type '(HTMLOptionElement or HTMLOp tGroupElement)'.
48 PASS select.add(null, 0) threw exception TypeError: Failed to execute 'add' on ' HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or HTM LOptGroupElement)'. 66 PASS select.add(null, 0) threw exception TypeError: Failed to execute 'add' on ' HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or HTM LOptGroupElement)'.
67 PASS select.add(new Option("X", "X", false, false), 0, 1) is undefined.
68 PASS select.add(new Option("X", "X", false, false), select.options[0], 2) is und efined.
49 PASS getSelectOptions() is "0,X,Y,1,2" 69 PASS getSelectOptions() is "0,X,Y,1,2"
50 PASS successfullyParsed is true 70 PASS successfullyParsed is true
51 71
52 TEST COMPLETE 72 TEST COMPLETE
53 73
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698