124df17729746cb46875a273318355ed67e87d89
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLSelectElement / select-selectedIndex-multiple-expected.txt
1
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 negative. Lengths must be greater than or equal to 0..
4 PASS mySelect.options.length is 2
5 PASS mySelect.selectedIndex is 0
6 2) setting length to a larger length
7 PASS mySelect.options.length is 5
8 PASS mySelect.selectedIndex is 0
9 3) setting length to a smaller length
10 PASS mySelect.options.length is 2
11 PASS mySelect.selectedIndex is 0
12 PASS mySelect.options.length is 1
13 PASS mySelect.selectedIndex is 0
14 4) setting length to the same length
15 PASS mySelect.options.length is 2
16 PASS mySelect.selectedIndex is 0
17 5) setting length to non-integer value: null
18 PASS mySelect.options.length is 0
19 PASS mySelect.selectedIndex is -1
20 6) setting length to non-integer value: undefined
21 PASS mySelect.options.length is 0
22 PASS mySelect.selectedIndex is -1
23 7) setting length to non-integer value: true
24 PASS mySelect.options.length is 1
25 PASS mySelect.selectedIndex is 0
26 8) setting length to non-integer value: false
27 PASS mySelect.options.length is 0
28 PASS mySelect.selectedIndex is -1
29 9) setting length to non-integer value: non-numeric string
30 PASS mySelect.options.length is 0
31 PASS mySelect.selectedIndex is -1
32 10) setting length to non-integer value: object
33 PASS mySelect.options.length is 0
34 PASS mySelect.selectedIndex is -1
35 11) setting length to non-integer value: negative infinity
36 PASS mySelect.options.length is 0
37 PASS mySelect.selectedIndex is -1
38 12) setting length to non-integer value: NaN
39 PASS mySelect.options.length is 0
40 PASS mySelect.selectedIndex is -1
41 13) setting length to non-integer value: positive infinity
42 PASS mySelect.options.length is 0
43 PASS mySelect.selectedIndex is -1
44 14) setting length to non-integer value: floating point number
45 PASS mySelect.options.length is 2
46 PASS mySelect.selectedIndex is 0
47 15) setting an element by index past the end of the current list
48 PASS mySelect.options.length is 11
49 PASS mySelect.selectedIndex is 0
50 16) setting an existing element by index
51 PASS mySelect.options.length is 11
52 PASS mySelect.selectedIndex is 0
53 17) trying to set an element that's not an option: null
54 PASS mySelect.options.length is 10
55 PASS mySelect.selectedIndex is 0
56 18) trying to set an element that's not an option: undefined
57 PASS mySelect.options.length is 10
58 PASS mySelect.selectedIndex is 0
59 19) trying to set an element that's not an option: select element
60 PASS mySelect.options[10] = mySelect; threw exception TypeError: Failed to set the '10' property on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
61 PASS mySelect.options.length is 10
62 PASS mySelect.selectedIndex is 0
63 20) trying to set a option element using an invalid index: negative infinity
64 PASS mySelect.options.length is 10
65 PASS mySelect.selectedIndex is 0
66 21) trying to set a option element using an invalid index: NaN
67 PASS mySelect.options.length is 10
68 PASS mySelect.selectedIndex is 0
69 22) trying to set a option element using an invalid index: positive infinity
70 PASS mySelect.options.length is 10
71 PASS mySelect.selectedIndex is 0
72
73 PASS successfullyParsed is true
74
75 TEST COMPLETE
76