layout/generic/test/test_bug404872.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=404872
     5 -->
     6 <head>
     7   <title>Test for Bug 404872</title>
     8   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    11 </head>
    12 <body>
    13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=404872">Mozilla Bug 404872</a>
    14 <p id="display">
    15   <select multiple id="a">
    16     <option name="value1">value1</option>
    17     <option name="value2">value2</option>
    18     <option name="value3">value3</option>
    19   </select>
    20 </p>
    21 <div id="content" style="display: none">
    23 </div>
    24 <pre id="test">
    25 <script class="testbody" type="text/javascript">
    27 /* Focus, press key down twice, and make sure we successfully selected the second item. */
    28 $('a').focus();
    29 synthesizeKey("VK_DOWN", {});
    30 synthesizeKey("VK_DOWN", {});
    31 is($("a").value, "value2", "value2 should be selected!");
    34 </script>
    35 </pre>
    36 </body>
    37 </html>

mercurial