4 <script src=
"../../resources/js-test.js"></script>
5 <script src=
"resources/spatial-navigation-utils.js"></script>
6 <script type=
"application/javascript">
16 if (window.testRunner) {
17 testRunner.dumpAsText();
18 testRunner.overridePreference(
"WebKitTabToLinksPreferenceKey",
1);
19 window.internals.settings.setSpatialNavigationEnabled(true);
20 testRunner.waitUntilDone();
25 // starting the test itself: get to a known place.
26 document.getElementById(
"start").focus();
28 initTest(resultMap, testCompleted);
31 function testCompleted()
33 if (window.testRunner)
34 testRunner.notifyDone();
37 window.onload = runTest;
42 <body id=
"some-content" xmlns=
"http://www.w3.org/1999/xhtml">
43 <map name=
"map" title=
"map" id=
"firstmap">
44 <area shape=
"rect" coords=
"20,20,70,70" href=
"#" id=
"1">
45 <area shape=
"rect" coords=
"20,130,70,180" id=
"2">
48 <a id=
"start" href=
"a"><img src=
"resources/green.png" width=
50px height=
50px
></a>
50 <img src=
"resources/green.png" width=
200px height=
200px
usemap=
"#map"><a id=
"6" href=
"a"><img src=
"resources/green.png" width=
50px height=
50px
></a>
52 <a id=
"3" href=
"a"><img src=
"resources/green.png" width=
50px height=
50px
></a>
53 <div id=
"console"></div>
54 <div>This test tests that areas of an imagemap without an href are not focusable, thus can not be reached with spatial navigation.
</div>