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

Unified Diff: LayoutTests/fast/forms/select/popup-menu-appearance-fractional-width.html

Issue 1042733002: ListPicker calculate accurate scroll height (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixe problem with scrollHeight calculation when hidden options and no options Created 5 years, 9 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 | « LayoutTests/TestExpectations ('k') | Source/web/resources/listPicker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/select/popup-menu-appearance-fractional-width.html
diff --git a/LayoutTests/fast/forms/select/popup-menu-appearance-many.html b/LayoutTests/fast/forms/select/popup-menu-appearance-fractional-width.html
similarity index 59%
copy from LayoutTests/fast/forms/select/popup-menu-appearance-many.html
copy to LayoutTests/fast/forms/select/popup-menu-appearance-fractional-width.html
index 68424caa8fd888138e4a9c6f2ce691706a4bce27..918a218117e76f3b3a11293021efd11098b041b8 100644
--- a/LayoutTests/fast/forms/select/popup-menu-appearance-many.html
+++ b/LayoutTests/fast/forms/select/popup-menu-appearance-fractional-width.html
@@ -8,18 +8,27 @@ window.enablePixelTesting = true;
<script src="../resources/picker-common.js"></script>
</head>
<body>
+<style>
+select {
+ -webkit-appearance: none;
+ font-size: 13px;
+ padding-right: 1.5em;
+ height: 25px;
+ font-family: 'Ahem';
+}
+</style>
<select id="menu">
+<option>foo</option>
+<option>foo</option>
+<option>foo</option>
+<option>foo</option>
+<option>foo</option>
</select>
<p id="description" style="opacity: 0"></p>
<div id="console" style="opacity: 0"></div>
<script>
+description('Test for crbug.com/470505. Pass if there is no vertical scroll bar in the popup.');
var menu = document.getElementById('menu');
-for (var i = 0; i < 200; i++) {
- var option = new Option('item ' + i);
- if (i === 100)
- option.selected = true;
- menu.appendChild(option);
-}
openPicker(menu, finishJSTest, function () {
testFailed('picker didn\'t open')
finishJSTest();
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/web/resources/listPicker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698