summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/select/listbox-width-change.html
blob: ce1f44ca58fbdd0a4e17a97fdb37c484deb76bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
    <head>
        <script>
            function test() {
                if (window.testRunner)
                    testRunner.waitUntilDone();
                setTimeout("test2()", 100);
            }
            function test2() {
                document.getElementById('sl').options[0] = new Option ( "This text should fit in the list box", "1" );
                if (window.testRunner)
                    testRunner.notifyDone();
            }
        </script>
    </head>
    <body onload="test()">
        This tests that when a list box's options get updated, the list box will recalculate its width, and relayout.
        <br>
        <select id="sl" multiple></select>
    </body>
</html>