3 This test ensures the traversal correctness of spatial navigation:
4 focusable elements accessible, including zero-margin content, should be
8 <style type=
"text/css">
10 background:none repeat scroll
0 0 #FFFFFF;
16 font-family:arial
,sans-serif
;
19 text-decoration:underline
;
20 color:#0000CC !important
;
24 <script src=
"../../resources/js-test.js"></script>
25 <script src=
"resources/spatial-navigation-utils.js"></script>
26 <script type=
"application/javascript">
33 if (window.testRunner) {
34 testRunner.dumpAsText();
35 testRunner.overridePreference(
"WebKitTabToLinksPreferenceKey",
1);
36 window.internals.settings.setSpatialNavigationEnabled(true);
37 testRunner.waitUntilDone();
42 // starting the test itself: get to a known place.
43 document.getElementById(
"start").focus();
45 initTest(resultMap, testCompleted);
48 function testCompleted()
50 if (window.testRunner)
51 testRunner.notifyDone();
54 window.onload = runTest;
58 <body id=
"some-content" xmlns=
"http://www.w3.org/1999/xhtml">
62 <a href=
"#" id=
"start"> test1
</a>
63 <a href=
"#" id=
"end"> test2
</a>
67 <div id=
"console"></div>