layout/generic/test/test_bug404872.html
author Paul Zuehlcke <pbz@mozilla.com>
Wed, 07 Dec 2022 15:25:33 +0000
changeset 644969 8e09abeeb445553bd956d537bcf54fcdf812bb52
parent 469640 c9c0c6f2eed54a187e124942e53c3660b4cf17d8
permissions -rw-r--r--
Bug 1803102 - Do not import cookie banner rules if the service is disabled during import. r=timhuang Differential Revision: https://phabricator.services.mozilla.com/D163715

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=404872
-->
<head>
  <title>Test for Bug 404872</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script src="/tests/SimpleTest/EventUtils.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=404872">Mozilla Bug 404872</a>
<p id="display">
  <select multiple id="a">
    <option name="value1">value1</option>
    <option name="value2">value2</option>
    <option name="value3">value3</option>
  </select>
</p>
<div id="content" style="display: none">
  
</div>
<pre id="test">
<script class="testbody" type="text/javascript">

/* Focus, press key down twice, and make sure we successfully selected the second item. */
$('a').focus();
synthesizeKey("KEY_ArrowDown");
synthesizeKey("KEY_ArrowDown");
is($("a").value, "value2", "value2 should be selected!");


</script>
</pre>
</body>
</html>