1 Test disabled attribute of optgroup element
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Check :disabled pseudo-class
7 PASS disabledSet["listbox_optgroup_disabled"] is true
8 PASS disabledSet["listbox_d1"] is true
9 PASS disabledSet["listbox_d2"] is true
10 PASS disabledSet["listbox_d3"] is true
11 PASS disabledSet["listbox_d4"] is true
12 PASS disabledSet["menulist_optgroup_disabled"] is true
13 PASS disabledSet["menulist_d1"] is true
14 PASS disabledSet["menulist_d2"] is true
15 PASS disabledSet["menulist_d3"] is true
16 PASS disabledSet["menulist_d4"] is true
17 PASS enabledSet["listbox_optgroup_enabled"] is true
18 PASS enabledSet["menulist_optgroup_enabled"] is true
20 PASS $("listbox_optgroup_disabled").disabled is true
21 PASS $("listbox_optgroup_enabled").disabled is false
22 PASS $("menulist_optgroup_disabled").disabled is true
23 PASS $("menulist_optgroup_enabled").disabled is false
24 select.disabled doesn't affect optgroup.disabled
25 PASS $("listbox_optgroup_disabled").disabled is true
26 PASS $("listbox_optgroup_enabled").disabled is false
27 PASS $("menulist_optgroup_disabled").disabled is true
28 PASS $("menulist_optgroup_enabled").disabled is false
29 select.disabled doesn't affect pseudo-class :disabled
30 PASS disabledSet["listbox_optgroup_disabled"] is true
31 PASS disabledSet["menulist_optgroup_disabled"] is true
32 PASS disabledSet["listbox_optgroup_enabled"] is undefined.
33 PASS disabledSet["menulist_optgroup_enabled"] is undefined.
34 form.disabled doesn't affect optgroup.disabled
35 PASS $("listbox_optgroup_disabled").disabled is true
36 PASS $("listbox_optgroup_enabled").disabled is false
37 PASS $("menulist_optgroup_disabled").disabled is true
38 PASS $("menulist_optgroup_enabled").disabled is false
39 form.disabled doesn't affect pseudo-class :disabled
40 PASS disabledSet["listbox_optgroup_disabled"] is true
41 PASS disabledSet["menulist_optgroup_disabled"] is true
42 PASS disabledSet["listbox_optgroup_enabled"] is undefined.
43 PASS disabledSet["menulist_optgroup_enabled"] is undefined.
45 PASS $("listbox_optgroup_disabled").disabled is false
46 PASS $("menulist_optgroup_disabled").disabled is false
47 PASS $("listbox_optgroup_disabled").disabled is true
48 PASS $("menulist_optgroup_disabled").disabled is true
49 optgroup.disabled doesn't affect option.selected
50 PASS $("listbox").selectedIndex is 0
51 PASS $("listbox").selectedIndex is 4
52 PASS $("menulist").selectedIndex is 0
53 PASS $("menulist").selectedIndex is 4
54 PASS successfullyParsed is true