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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/forms/select/popup-menu-nested-style-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/select/popup-menu-nested-style.html
diff --git a/LayoutTests/fast/forms/select/popup-menu-nested-style.html b/LayoutTests/fast/forms/select/popup-menu-nested-style.html
new file mode 100644
index 0000000000000000000000000000000000000000..e5e13d8b7d6d9cb0ead031c8125e03f3a5d5f3e0
--- /dev/null
+++ b/LayoutTests/fast/forms/select/popup-menu-nested-style.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+<script src="../resources/common.js"></script>
+<script src="../resources/picker-common.js"></script>
+</head>
+<body>
+<select id="menu" style="background-color:white; color:black;">
+ <option>foo</option>
+ <optgroup label="Group" style="background-color:black; color:white;">
+ <option style="background-color:white; color:black;">bar</option>
+ </optgroup>
+ <optgroup label="Group2" style="display:none;">
+ <option>baz</option>
+ </optgroup>
+</select>
+<script>
+description('Check if an OPTION style is serialized with comparison with the parent OPTGROUP style.');
+var menuElement = document.getElementById('menu');
+var params = null;
+
+function openPickerErrorCallback() {
+ testFailed('picker didn\'t open')
+ finishJSTest();
+}
+openPicker(menu, test1, openPickerErrorCallback);
+function test1() {
+ params = window.internals.pagePopupWindow.global.params;
+ shouldBeEqualToString('params.children[1].type', 'optgroup');
+ shouldBeUndefined('params.children[1].children[0].type');
+ shouldBeEqualToString('params.children[1].children[0].style.color', '#000000');
+ shouldBeEqualToString('params.children[1].children[0].style.backgroundColor', '#ffffff');
+
+ finishJSTest();
+}
+</script>
+</body>
+</html>
« 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