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

Side by Side Diff: LayoutTests/fast/forms/select/popup-menu-appearance-tall.html

Issue 1075073004: New SELECT Popup: Fix window width to include scrollbar width (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added TestExpectation entry 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
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 <select id="menu"> 11 <select id="menu" style="width: 10px; font-size: 300px;">
12 <option>X</option>
13 <option>X</option>
14 <option>X</option>
15 <option>X</option>
16 <option>X</option>
12 </select> 17 </select>
13 <p id="description" style="opacity: 0"></p> 18 <p id="description" style="opacity: 0"></p>
14 <div id="console" style="opacity: 0"></div> 19 <div id="console" style="opacity: 0"></div>
15 <script> 20 <script>
21 description('Tests if width is increased for the scrollbar. PASS if the X is not clipped.');
16 var menu = document.getElementById('menu'); 22 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 () { 23 openPicker(menu, finishJSTest, function () {
24 testFailed('picker didn\'t open') 24 testFailed('picker didn\'t open')
25 finishJSTest(); 25 finishJSTest();
26 }); 26 });
27 </script> 27 </script>
28 </body> 28 </body>
29 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698