Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLOptionElement / collection-setter-getter-expected.txt
1 Tests the indexed setter and getter for HTMLOptionsCollection.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 1) getting options by index or by getElementById
7 PASS get_options[0] is document.getElementById("one")
8 PASS get_options[1] is document.getElementById("two")
9 2) setting a few elements to Option values
10 PASS set_options.length is 3
11 3) trying to set an element to a non-Option value: undefined
12 PASS set_options.length is 3
13 4) trying to set an element to a non-Option value: null
14 PASS set_options.length is 3
15 5) trying to set an element to a non-Option value: form (object of incorrect type)
16 PASS set_options[10] = my_form threw exception TypeError: The provided value is not of type 'HTMLOptionElement'..
17 PASS set_options.length is 3
18 PASS successfullyParsed is true
19
20 TEST COMPLETE
21