blob: b2f37d7b7573584bfff8b7fcd66608c574f0c42c [file] [log] [blame]
1) setting length to a negative length
PASS mySelect.options.length = -1; threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
PASS mySelect.options.length is 2
PASS mySelect.selectedIndex is 1
2) setting length to a larger length
PASS mySelect.options.length is 5
PASS mySelect.selectedIndex is 1
3) setting length to a smaller length
PASS mySelect.options.length is 2
PASS mySelect.selectedIndex is 1
PASS mySelect.options.length is 1
PASS mySelect.selectedIndex is -1
4) setting length to the same length
PASS mySelect.options.length is 2
PASS mySelect.selectedIndex is 1
5) setting length to non-integer value: null
PASS mySelect.options.length is 0
PASS mySelect.selectedIndex is -1
6) setting length to non-integer value: undefined
PASS mySelect.options.length is 0
PASS mySelect.selectedIndex is -1
7) setting length to non-integer value: true
PASS mySelect.options.length is 1
PASS mySelect.selectedIndex is -1
8) setting length to non-integer value: false
PASS mySelect.options.length is 0
PASS mySelect.selectedIndex is -1
9) setting length to non-integer value: non-numeric string
PASS mySelect.options.length is 0
PASS mySelect.selectedIndex is -1
10) setting length to non-integer value: object
PASS mySelect.options.length is 0
PASS mySelect.selectedIndex is -1
11) setting length to non-integer value: negative infinity
PASS mySelect.options.length is 0
PASS mySelect.selectedIndex is -1
12) setting length to non-integer value: NaN
PASS mySelect.options.length is 0
PASS mySelect.selectedIndex is -1
13) setting length to non-integer value: positive infinity
PASS mySelect.options.length is 0
PASS mySelect.selectedIndex is -1
14) setting length to non-integer value: floating point number
PASS mySelect.options.length is 2
PASS mySelect.selectedIndex is 1
15) setting an element by index past the end of the current list
PASS mySelect.options.length is 11
PASS mySelect.selectedIndex is 10
16) setting an existing element by index
PASS mySelect.options.length is 11
PASS mySelect.selectedIndex is 10
17) trying to set an element that's not an option: null
PASS mySelect.options.length is 10
PASS mySelect.selectedIndex is -1
18) trying to set an element that's not an option: undefined
PASS mySelect.options.length is 10
PASS mySelect.selectedIndex is -1
19) trying to set an element that's not an option: select element
PASS mySelect.options[10] = mySelect; threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
PASS mySelect.options.length is 10
PASS mySelect.selectedIndex is -1
20) trying to set a option element using an invalid index: negative infinity
PASS mySelect.options.length is 10
PASS mySelect.selectedIndex is -1
21) trying to set a option element using an invalid index: NaN
PASS mySelect.options.length is 10
PASS mySelect.selectedIndex is -1
22) trying to set a option element using an invalid index: positive infinity
PASS mySelect.options.length is 10
PASS mySelect.selectedIndex is -1
PASS successfullyParsed is true
TEST COMPLETE