4 <script src=
"../../../resources/js-test.js"></script>
5 <script src=
"../resources/common.js"></script>
6 <script src=
"../resources/picker-common.js"></script>
9 <select id=
"menu" style=
"background-color:white; color:black;">
11 <optgroup label=
"Group" style=
"background-color:black; color:white;">
12 <option style=
"background-color:white; color:black;">bar
</option>
14 <optgroup label=
"Group2" style=
"display:none;">
19 description('Check if an OPTION style is serialized with comparison with the parent OPTGROUP style.');
20 var menuElement
= document
.getElementById('menu');
23 function openPickerErrorCallback() {
24 testFailed('picker didn\'t open')
27 openPicker(menu
, test1
, openPickerErrorCallback
);
29 params
= window
.internals
.pagePopupWindow
.global
.params
;
30 shouldBeEqualToString('params.children[1].type', 'optgroup');
31 shouldBeUndefined('params.children[1].children[0].type');
32 shouldBeEqualToString('params.children[1].children[0].style.color', '#000000');
33 shouldBeEqualToString('params.children[1].children[0].style.backgroundColor', '#ffffff');