Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: LayoutTests/fast/forms/select/popup-menu-nested-style.html

Issue 1325623002: New SELECT Popup: Compare OPTION style with the parent OPTGROUP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/forms/select/popup-menu-nested-style-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script src="../resources/common.js"></script>
6 <script src="../resources/picker-common.js"></script>
7 </head>
8 <body>
9 <select id="menu" style="background-color:white; color:black;">
10 <option>foo</option>
11 <optgroup label="Group" style="background-color:black; color:white;">
12 <option style="background-color:white; color:black;">bar</option>
13 </optgroup>
14 <optgroup label="Group2" style="display:none;">
15 <option>baz</option>
16 </optgroup>
17 </select>
18 <script>
19 description('Check if an OPTION style is serialized with comparison with the par ent OPTGROUP style.');
20 var menuElement = document.getElementById('menu');
21 var params = null;
22
23 function openPickerErrorCallback() {
24 testFailed('picker didn\'t open')
25 finishJSTest();
26 }
27 openPicker(menu, test1, openPickerErrorCallback);
28 function test1() {
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');
34
35 finishJSTest();
36 }
37 </script>
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/select/popup-menu-nested-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698