4 <script src=
"../../resources/js-test.js"></script>
5 <script src=
"resources/spatial-navigation-utils.js"></script>
6 <script type=
"application/javascript">
24 if (window.testRunner) {
25 testRunner.dumpAsText();
26 testRunner.overridePreference(
"WebKitTabToLinksPreferenceKey",
1);
27 window.internals.settings.setSpatialNavigationEnabled(true);
28 testRunner.waitUntilDone();
33 // starting the test itself: get to a known place.
34 document.getElementById(
"start").focus();
36 initTest(resultMap, testCompleted);
39 function testCompleted()
41 if (window.testRunner)
42 testRunner.notifyDone();
45 window.onload = runTest;
50 <body id=
"some-content" xmlns=
"http://www.w3.org/1999/xhtml">
51 <map name=
"map" title=
"map" id=
"firstmap">
52 <area shape=
"circle" coords=
"45,45,25" href=
"#" id=
"1">
53 <area shape=
"rect" coords=
"45,60,95,110" href=
"#" id=
"2">
54 <area shape=
"poly" coords=
"80,20,130,20,130,180,30,180,30,130,80,130" href=
"#" id=
"3">
55 <area shape=
"default" href=
"#" id=
"4">
58 <a id=
"start" href=
"a"><img src=
"resources/green.png" width=
50px height=
50px
></a>
60 <img src=
"resources/green.png" width=
200px height=
200px
usemap=
"#map">
62 <a id=
"5" href=
"a"><img src=
"resources/green.png" width=
50px height=
50px
></a>
63 <div id=
"console"></div>
64 <div>This test tests that areas of an imagemap can be reached with spatial navigation even if they are overlapped.
</div>