Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / toolkit / spatial-navigation / tests / chrome / test_snav_textFields.xul
blob470e847e15441df184db6683bcc26858c4c83150
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 436084</a>
23 </p>
25 <p>
26 <input id="textinput" value="abcdefghijklmnopqrstuvwxyz" type="text"></input>
27 </p>
29 <p>
30 <textarea id="textarea" name="textarea" cols="30" rows="3" wrap="hard">The Book of Mozilla</textarea>
31 </p>
33 <p>
34 <a id="end" href="https://bugzilla.mozilla.org/show_bug.cgi?id=436084">Mozilla Bug 436084</a>
35 </p>
37 </body>
40 <script class="testbody" type="application/javascript">
41 <![CDATA[
42 Components.utils.import("resource://gre/modules/SpatialNavigation.js");
44 var moveTable = [
45 ["DOWN", "textinput"],
46 ["DOWN", "textinput"],
47 ["DOWN", "textarea"],
48 ["DOWN", "textarea"],
49 ["DOWN", "end"],
50 ["UP", "textarea"],
51 ["UP", "textarea"],
52 ["UP", "textinput"],
53 ["UP", "textinput"],
54 ["UP", "start"],
55 ["DOWN", "textinput"],
56 ["LEFT", "textinput"],
59 ["RIGHT", "textinput"],
60 ["RIGHT", "textinput"],
61 ["RIGHT", "textinput"],
62 ["RIGHT", "textinput"],
63 ["RIGHT", "textinput"],
64 ["RIGHT", "textinput"],
65 ["RIGHT", "textinput"],
66 ["RIGHT", "textinput"],
67 ["RIGHT", "textinput"],
68 ["RIGHT", "textinput"],
69 ["RIGHT", "textinput"],
70 ["RIGHT", "textinput"],
71 ["RIGHT", "textinput"],
72 ["RIGHT", "textinput"],
73 ["RIGHT", "textinput"],
74 ["RIGHT", "textinput"],
75 ["RIGHT", "textinput"],
76 ["RIGHT", "textinput"],
77 ["RIGHT", "textinput"],
78 ["RIGHT", "textinput"],
79 ["RIGHT", "textinput"],
80 ["RIGHT", "textinput"],
81 ["RIGHT", "textinput"],
82 ["RIGHT", "textinput"],
83 ["RIGHT", "textinput"],
84 ["RIGHT", "textinput"],
85 ["RIGHT", "textarea"],
86 ["LEFT", "textarea"],
87 ["RIGHT", "textarea"],
88 ["RIGHT", "textarea"],
89 ["RIGHT", "textarea"],
90 ["RIGHT", "textarea"],
91 ["RIGHT", "textarea"],
92 ["RIGHT", "textarea"],
93 ["RIGHT", "textarea"],
94 ["RIGHT", "textarea"],
95 ["RIGHT", "textarea"],
96 ["RIGHT", "textarea"],
97 ["RIGHT", "textarea"],
98 ["RIGHT", "textarea"],
99 ["RIGHT", "textarea"],
100 ["RIGHT", "textarea"],
101 ["RIGHT", "textarea"],
102 ["RIGHT", "textarea"],
103 ["RIGHT", "textarea"],
104 ["RIGHT", "textarea"],
105 ["RIGHT", "textarea"],
106 ["RIGHT", "end"],
107 ["UP", "textarea"],
108 ["DONE", "DONE"],
111 var prefs = [
112 ["enabled", "bool", true],
113 ["xulContentEnabled", "bool", true],
114 ["keyCode.modifier", "char", "none"],
117 function onLoad()
119 prepareTest(prefs);
121 // starting the test itself.
122 var x = document.getElementById("some-content");
123 SpatialNavigation.init(x);
125 // get to a known place.
126 document.getElementById("start").focus();
128 testMoves(moveTable);
130 SimpleTest.waitForExplicitFinish();
132 SpatialNavigation.uninit();
135 ]]></script>
136 </window>