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