tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug404872.html (1007B)


      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 src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <script 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">
     22  
     23 </div>
     24 <pre id="test">
     25 <script class="testbody" type="text/javascript">
     26 
     27 /* Focus, press key down twice, and make sure we successfully selected the second item. */
     28 $('a').focus();
     29 synthesizeKey("KEY_ArrowDown");
     30 synthesizeKey("KEY_ArrowDown");
     31 is($("a").value, "value2", "value2 should be selected!");
     32 
     33 
     34 </script>
     35 </pre>
     36 </body>
     37 </html>