content/base/test/test_bug320799.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=320799
     5 -->
     6 <head>
     7   <title>Test for Bug 320799</title>
     8   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    10 </head>
    11 <body>
    12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=320799">Mozilla Bug 320799</a>
    13 <p id="display">
    14   <select id="s" style="width: 100px; box-sizing: padding-box">
    15     <option>This is a test, it really is a test I tell you</option>
    16   </select>
    17   <select id="s2">
    18     <option>x</option>
    19     <option>x</option>
    20     <option>x</option>
    21     <option>x</option>
    22     <option>x</option>
    23     <option>x</option>
    24     <option>x</option>
    25     <option>x</option>
    26     <option>x</option>
    27     <option>x</option>
    28     <option>x</option>
    29     <option>x</option>
    30     <option>x</option>
    31     <option>x</option>
    32     <option>x</option>
    33     <option>x</option>
    34     <option>x</option>
    35     <option>x</option>
    36     <option>x</option>
    37     <option>x</option>
    38     <option>x</option>
    39     <option>x</option>
    40     <option>x</option>
    41     <option>x</option>
    42     <option>x</option>
    43     <option>x</option>
    44     <option>x</option>
    45     <option>x</option>
    46     <option>x</option>
    47     <option>x</option>
    48     <option>x</option>
    49     <option>x</option>
    50     <option>x</option>
    51   </select>
    52   <select id="s3">
    53     <option>x</option>
    54   </select>
    55 </p>
    56 <div id="content" style="display: none">
    58 </div>
    59 <pre id="test">
    60 <script type="application/javascript">
    62 /** Test for Bug 320799 **/
    63 is($("s").scrollWidth, 100, "Scroll width should not include dropdown contents");
    64 is($("s2").clientWidth, $("s3").clientWidth,
    65    "Client width should not depend on the dropdown's vertical scrollbar");
    66 </script>
    67 </pre>
    68 </body>
    69 </html>

mercurial