1 Test select.add() method
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
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(undefined) is "0,1,2,X"
15 PASS addOption(null) is "0,1,2,X"
16 PASS addOption(NaN) is "X,0,1,2"
17 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"
20 PASS select.add() threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': 1 argument required, but only 0 present..
21 PASS select.add("foo") threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
22 PASS select.add("foo", 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
23 PASS select.add(undefined) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
24 PASS select.add(undefined, 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
25 PASS select.add(null) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
26 PASS select.add(null, 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
27 PASS getSelectOptions() is "0,X,Y,1,2"
29 PASS addOption(0) is "X,0,1,2"
30 PASS addOption(1) is "0,X,1,2"
31 PASS addOption(2) is "0,1,X,2"
32 PASS addOption(3) is "0,1,2,X"
33 PASS addOption(100) is "0,1,2,X"
34 PASS addOption(-100) is "0,1,2,X"
35 PASS getSelectOptions() is "0,1,2,X"
36 PASS addOption(undefined) is "0,1,2,X"
37 PASS addOption(null) is "0,1,2,X"
38 PASS addOption(NaN) is "X,0,1,2"
39 PASS addOption(Infinity) is "X,0,1,2"
40 PASS addOption(-Infinity) is "X,0,1,2"
41 PASS addOption("foo") is "X,0,1,2"
42 PASS select.add() threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': 1 argument required, but only 0 present..
43 PASS select.add("foo") threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
44 PASS select.add("foo", 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
45 PASS select.add(undefined) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
46 PASS select.add(undefined, 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
47 PASS select.add(null) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
48 PASS select.add(null, 0) threw exception TypeError: Failed to execute 'add' on 'HTMLSelectElement': No function was found that matched the signature provided..
49 PASS getSelectOptions() is "0,X,Y,1,2"
50 PASS successfullyParsed is true