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

Side by Side 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, 8 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 | « LayoutTests/TestExpectations ('k') | Source/web/resources/listPicker.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 window.enablePixelTesting = true; 5 window.enablePixelTesting = true;
6 </script> 6 </script>
7 <script src="../../../resources/js-test.js"></script> 7 <script src="../../../resources/js-test.js"></script>
8 <script src="../resources/picker-common.js"></script> 8 <script src="../resources/picker-common.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
11 <style>
12 select {
13 -webkit-appearance: none;
14 font-size: 13px;
15 padding-right: 1.5em;
16 height: 25px;
17 font-family: 'Ahem';
18 }
19 </style>
11 <select id="menu"> 20 <select id="menu">
21 <option>foo</option>
22 <option>foo</option>
23 <option>foo</option>
24 <option>foo</option>
25 <option>foo</option>
12 </select> 26 </select>
13 <p id="description" style="opacity: 0"></p> 27 <p id="description" style="opacity: 0"></p>
14 <div id="console" style="opacity: 0"></div> 28 <div id="console" style="opacity: 0"></div>
15 <script> 29 <script>
30 description('Test for crbug.com/470505. Pass if there is no vertical scroll bar in the popup.');
16 var menu = document.getElementById('menu'); 31 var menu = document.getElementById('menu');
17 for (var i = 0; i < 200; i++) {
18 var option = new Option('item ' + i);
19 if (i === 100)
20 option.selected = true;
21 menu.appendChild(option);
22 }
23 openPicker(menu, finishJSTest, function () { 32 openPicker(menu, finishJSTest, function () {
24 testFailed('picker didn\'t open') 33 testFailed('picker didn\'t open')
25 finishJSTest(); 34 finishJSTest();
26 }); 35 });
27 </script> 36 </script>
28 </body> 37 </body>
29 </html> 38 </html>
OLDNEW
« 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