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="../js/resources/js-test-pre.js"></script>
25 <script src="resources/spatial-navigation-utils.js"></script>
26 <script type="application/javascript">
33 if (window.layoutTestController) {
34 layoutTestController.dumpAsText();
35 layoutTestController.setSpatialNavigationEnabled(true);
36 layoutTestController.overridePreference("WebKitTabToLinksPreferenceKey", 1);
37 layoutTestController.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.layoutTestController)
51 layoutTestController.notifyDone();
54 window.onload = runTest;
57 <script src="js/resources/js-test-post.js"></script>
59 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
63 <a href="#" id="start"> test1 </a>
64 <a href="#" id="end"> test2 </a>
68 <div id="console"></div>