2 <script src='../../../resources/js-test.js'
></script>
3 <script src='../resources/common.js'
></script>
4 <script>description('Option Groups with display: none should not show the children option elements');</script>
10 <optgroup label='Four-Five' style='display: none'
>
15 <option>Seven
</option>
21 <option>Three
</option>
22 <optgroup label='Four-Five'
>
27 <option>Seven
</option>
32 if (window
.eventSender
) {
34 var optgrp
= document
.querySelectorAll('optgroup');
35 var select
= document
.querySelectorAll('select');
38 eventSender
.keyDown('downArrow');
39 eventSender
.keyDown('downArrow');
40 eventSender
.keyDown('downArrow');
41 shouldBeEqualToString('select[1].value', 'Four');
44 optgrp
[1].style
.display
= 'none';
45 eventSender
.keyDown('O');
46 eventSender
.keyDown('downArrow');
47 eventSender
.keyDown('downArrow');
48 eventSender
.keyDown('downArrow');
49 shouldBeEqualToString('select[1].value', 'Six');
52 eventSender
.keyDown('downArrow');
53 eventSender
.keyDown('downArrow');
54 eventSender
.keyDown('downArrow');
55 shouldBeEqualToString('select[0].value', 'Six');