Git init
[framework/web/webkit-efl.git] / LayoutTests / fast / spatial-navigation / snav-imagemap-area-without-image.html
1 <html>
2   <head>
3
4     <script src="../js/resources/js-test-pre.js"></script>
5     <script src="resources/spatial-navigation-utils.js"></script>
6     <script type="application/javascript">
7
8     var resultMap = [
9       ["Down", "3"],
10       ["Up", "start"],
11       ["DONE", "DONE"]
12     ];
13
14     if (window.layoutTestController) {
15       layoutTestController.dumpAsText();
16       layoutTestController.setSpatialNavigationEnabled(true);
17       layoutTestController.overridePreference("WebKitTabToLinksPreferenceKey", 1);
18       layoutTestController.waitUntilDone();
19     }
20
21     function runTest()
22     {
23       // starting the test itself: get to a known place.
24       document.getElementById("start").focus();
25
26       initTest(resultMap, testCompleted);
27     }
28
29     function testCompleted()
30     {
31       if (window.layoutTestController)
32         layoutTestController.notifyDone();
33     }
34
35     window.onload = runTest;
36
37     </script>
38     <script src="js/resources/js-test-post.js"></script>
39   </head>
40
41   <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
42   <map name="map" title="map" id="firstmap">
43     <area shape="rect" coords="20,20,70,70" href="#" id="1">
44     <area shape="rect" coords="20,130,70,180" href="#" id="2">
45   </map>
46
47     <a id="start" href="a"><img src="resources/green.png" width=50px height=50px></a>
48     <div>
49       <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>
50     </div>
51     <a id="3" href="a"><img src="resources/green.png" width=50px height=50px></a>
52     <div id="console"></div>
53     <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>
54   </body>
55 </html>
56