2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
5 <option>Random Transformer
</option>
7 <option>Optimus Prime
</option>
8 <option>Bumblebee
</option>
12 <option>Megatron
</option>
13 <option>Starscream
</option>
14 <option>Brawl
</option>
20 var axMenuList
= accessibilityController
.accessibleElementById("menulist");
21 assert_equals(axMenuList
.role
, "AXRole: AXPopUpButton");
22 var axMenuListPopup
= axMenuList
.childAtIndex(0);
23 assert_equals(axMenuListPopup
.role
, "AXRole: AXMenuListPopup");
24 assert_equals(axMenuListPopup
.childrenCount
, 7);
25 for (var i
= 0; i
< axMenuListPopup
.childrenCount
; i
++) {
26 assert_equals(axMenuListPopup
.childAtIndex(i
).role
, "AXRole: AXMenuListOption");
28 }, "menu list optgroup options are accessible");