Git init
[framework/web/webkit-efl.git] / LayoutTests / fast / spatial-navigation / snav-zero-margin-content.html
1 <html>
2   <!--
3     This test ensures the traversal correctness of spatial navigation:
4     focusable elements accessible, including zero-margin content, should be
5     accessible.
6   -->
7   <head>
8     <style type="text/css">
9       body {
10         background:none repeat scroll 0 0 #FFFFFF;
11         color:black;
12         margin:0;
13       }
14
15       body, a, {
16         font-family:arial,sans-serif;
17         margin-right:2.5em;
18         font-size:13px;
19         text-decoration:underline;
20         color:#0000CC !important;
21       }
22     </style>
23
24     <script src="../js/resources/js-test-pre.js"></script>
25     <script src="resources/spatial-navigation-utils.js"></script>
26     <script type="application/javascript">
27
28     var resultMap = [
29       ["Right", "end"],
30       ["DONE", "DONE"]
31     ];
32
33     if (window.layoutTestController) {
34       layoutTestController.dumpAsText();
35       layoutTestController.setSpatialNavigationEnabled(true);
36       layoutTestController.overridePreference("WebKitTabToLinksPreferenceKey", 1);
37       layoutTestController.waitUntilDone();
38     }
39
40     function runTest()
41     {
42       // starting the test itself: get to a known place.
43       document.getElementById("start").focus();
44
45       initTest(resultMap, testCompleted);
46     }
47
48     function testCompleted()
49     {
50       if (window.layoutTestController)
51         layoutTestController.notifyDone();
52     }
53
54     window.onload = runTest;
55
56     </script>
57     <script src="js/resources/js-test-post.js"></script>
58   </head>
59   <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
60     <span>
61       <div>
62         <nobr>
63           <a href="#" id="start"> test1 </a>
64           <a href="#" id="end"> test2 </a>
65         </nobr>
66       </div>
67     </span>
68     <div id="console"></div>
69   </body>
70 </html>