Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / toolkit / spatial-navigation / tests / chrome / test_snav_selects.xul
blob7ae0746b73c4b5e77bbbfa5518861e19488926be
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css type="text/css"?>
5 <!--
6 https://bugzilla.mozilla.org/show_bug.cgi?id=436084
7 -->
9 <window title="Mozilla Bug 288254"
10 xmlns:html="http://www.w3.org/1999/xhtml"
11 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
12 onload="onLoad();">
14 <script type="application/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
15 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
16 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
17 <script type="text/javascript" src="SpatialNavUtils.js"></script>
19 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
21 <p>
22 <a id="start" href="https://bugzilla.mozilla.org/show_bug.cgi?id=436084">Mozilla Bug 445518</a>
23 </p>
25 <form>
26 <select id="select_element" name="dropdown" size="1">
27 <option value ="1">option 1</option>
28 <option value ="2">option 2</option>
29 <option value ="3">option 3</option>
30 <option value ="4">option 4</option>
31 </select>
32 </form>
34 <p>
35 <a id="end" href="https://bugzilla.mozilla.org/show_bug.cgi?id=436084">Mozilla Bug 445518</a>
36 </p>
38 </body>
40 <script class="testbody" type="application/javascript">
41 <![CDATA[
42 Components.utils.import("resource://gre/modules/SpatialNavigation.js");
44 var moveTable = [
45 ["DOWN", "select_element"],
46 ["UP", "start"],
47 ["DOWN", "select_element"],
48 ["DOWN", "select_element"],
49 ["DOWN", "select_element"],
50 ["DOWN", "select_element"],
51 ["DOWN", "end"],
52 ["DONE", "DONE"],
55 var prefs = [
56 ["enabled", "bool", true],
57 ["xulContentEnabled", "bool", true],
58 ["keyCode.modifier", "char", "none"],
61 function onLoad()
63 prepareTest(prefs);
65 // starting the test itself.
66 var x = document.getElementById("some-content");
67 SpatialNavigation.init(x);
69 // get to a known place.
70 document.getElementById("start").focus();
72 testMoves(moveTable);
74 SimpleTest.waitForExplicitFinish();
76 SpatialNavigation.uninit();
79 ]]></script>
80 </window>