2 <?xml-stylesheet href=
"chrome://global/skin" type=
"text/css"?>
3 <?xml-stylesheet href=
"chrome://mochikit/content/tests/SimpleTest/test.css type="text/css
"?>
6 https://bugzilla.mozilla.org/show_bug.cgi?id=436084
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
"
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
">
22 <a id="start
" href="https://bugzilla.mozilla.org/show_bug.cgi?id=
436084">Mozilla Bug 436084</a>
26 <input id="textinput
" value="abcdefghijklmnopqrstuvwxyz
" type="text
"></input>
30 <textarea id="textarea
" name="textarea
" cols="30" rows="3" wrap="hard
">The Book of Mozilla</textarea>
34 <a id="end
" href="https://bugzilla.mozilla.org/show_bug.cgi?id=
436084">Mozilla Bug 436084</a>
40 <script class="testbody
" type="application/javascript
">
42 Components.utils.import("resource://gre/modules/SpatialNavigation.js
");
45 ["DOWN
", "textinput
"],
46 ["DOWN
", "textinput
"],
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
"],
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
"],
112 ["enabled
", "bool
", true],
113 ["xulContentEnabled
", "bool
", true],
114 ["keyCode.modifier
", "char
", "none
"],
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();