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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/menulist-width-change.html

Issue 1509853008: Move select/option/optgroup-related tests in fast/forms to fast/forms/select. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 function test() {
5 if (window.testRunner)
6 testRunner.waitUntilDone();
7
8 setTimeout('addLongOption();', 100);
9 }
10 function addLongOption()
11 {
12 var newOpt = document.createElement("option");
13 newOpt.appendChild(document.createTextNode("I require more room" ));
14 var sl = document.getElementById("t");
15 sl.appendChild(newOpt);
16
17 if (window.testRunner)
18 testRunner.notifyDone();
19 }
20 </script>
21 </head>
22 <body onload="test()">
23 This tests that when an option is dynamically added to a menu list, and it i s too long for the current width,<br>
24 that the select automatically recalculates the correct width.<br>
25 <select id="t">
26 <option id="short">Short</option>
27 <option id="medium">Medium</option>
28 </select>
29 <div id="res"></div>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698