Git init
[framework/web/webkit-efl.git] / LayoutTests / fast / spatial-navigation / snav-two-elements-one-line.html
1 <html>
2   <head>
3     <script src="../js/resources/js-test-pre.js"></script>
4     <script src="resources/spatial-navigation-utils.js"></script>
5     <script type="application/javascript">
6
7     var resultMap = [
8       ["Down", "e1"],
9       ["Down", "e2"],
10       ["Down", "e3"],
11       ["Up", "e2"],
12       ["Up", "e1"],
13       ["Up", "start"],
14       ["DONE", "DONE"]
15     ];
16
17     if (window.layoutTestController) {
18       layoutTestController.dumpAsText();
19       layoutTestController.setSpatialNavigationEnabled(true);
20       layoutTestController.overridePreference("WebKitTabToLinksPreferenceKey", 1);
21       layoutTestController.waitUntilDone();
22     }
23
24     function runTest()
25     {
26       // starting the test itself: get to a known place.
27       document.getElementById("start").focus();
28
29       initTest(resultMap, testCompleted);
30     }
31
32     function testCompleted()
33     {
34       if (window.layoutTestController)
35         layoutTestController.notifyDone();
36     }
37
38     window.onload = runTest;
39     </script>
40     <script src="js/resources/js-test-post.js"></script>
41     <style>
42     div.container1 { width: 100px;}
43     div.container2 { width: 100px;}
44     </style>
45   </head>
46 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml" style="padding:20px">
47 <div class="container1">
48 <a href="#" id="start">AAAAAAAAAA AAAAAAAAAA AA</a>
49 <a href="#" id="e1">AA AAAAAAAAAA AAAAAAAAAA</a>
50 </div>
51 <br><br>
52 <div class="container2">
53 <a href="#" id="e2">AAAAAAAAAA AAAAAAAAAA AA</a>
54 <span>B</span>
55 <a href="#" id="e3">AA AAAAAAAAAA AAAAAAAAAA</a>
56 </div>
57
58
59
60
61 <div id="console"></div>
62 This test is testing that we can handle 2 inline elements in the same line.
63 </body>
64 </html>