3 This test ensures the correctness of a basic aspect of spatial navigation traversal
4 routines: scrollable block html elements without any focusable content should be ignored.
7 1) DRT support for spatial navigation enable/disable.
10 1) Loads this page, focus goes to "start" automatically.
11 2) Focus moves from "start" to "end" bypassing the two div's
12 in between them, once both have no focusable elements inside.
15 <style type=
"text/css">
20 border: 1px solid
#666;
21 background-color: #ccc;
26 <script src=
"../../resources/js-test.js"></script>
27 <script src=
"resources/spatial-navigation-utils.js"></script>
28 <script type=
"application/javascript">
48 if (window.testRunner) {
49 testRunner.dumpAsText();
50 testRunner.overridePreference(
"WebKitTabToLinksPreferenceKey",
1);
51 window.internals.settings.setSpatialNavigationEnabled(true);
52 testRunner.waitUntilDone();
57 // starting the test itself: get to a known place.
58 document.getElementById(
"start").focus();
60 initTest(resultMap, testCompleted);
63 function testCompleted()
65 if (window.testRunner)
66 testRunner.notifyDone();
69 window.onload = runTest;
72 <body id=
"some-content" xmlns=
"http://www.w3.org/1999/xhtml">
73 <div><a id=
"start" href=
"a"><img src=
"resources/green.png" width=
30 height=
30></a></div>
75 <img src=
"resources/green.png" width=
240 height=
300>
79 <img src=
"resources/green.png" width=
240 height=
300>
81 <div><a id=
"end" href=
"a"><img src=
"resources/green.png" width=
30 height=
30></a></div>
82 <div id=
"console"></div>
83 This test is to test that a scrollable div can scroll and reveal its content even if it does not have any focusable content.