Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / spatial-navigation / snav-imagemap-area-without-image.html
blob60e25adba6ae18a346b19b2ea33411b6fabff927
1 <html>
2 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/spatial-navigation-utils.js"></script>
6 <script type="application/javascript">
8 var resultMap = [
9 ["Down", "3"],
10 ["Up", "start"],
11 ["DONE", "DONE"]
14 if (window.testRunner) {
15 testRunner.dumpAsText();
16 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
17 window.internals.settings.setSpatialNavigationEnabled(true);
18 testRunner.waitUntilDone();
21 function runTest()
23 // starting the test itself: get to a known place.
24 document.getElementById("start").focus();
26 initTest(resultMap, testCompleted);
29 function testCompleted()
31 if (window.testRunner)
32 testRunner.notifyDone();
35 window.onload = runTest;
37 </script>
38 </head>
40 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
41 <map name="map" title="map" id="firstmap">
42 <area shape="rect" coords="20,20,70,70" href="#" id="1">
43 <area shape="rect" coords="20,130,70,180" href="#" id="2">
44 </map>
46 <a id="start" href="a"><img src="resources/green.png" width=50px height=50px></a>
47 <div>
48 <img src="resources/green.png" width=200px height=200px usemap="#othermap"><a id="6" href="a"><img src="resources/green.png" width=50px height=50px></a>
49 </div>
50 <a id="3" href="a"><img src="resources/green.png" width=50px height=50px></a>
51 <div id="console"></div>
52 <div>This test tests that areas of an imagemap without an image using it, are not focusable, thus can not be reached with spatial navigation.</div>
53 </body>
54 </html>