Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / spatial-navigation / snav-two-elements-one-line.html
blob18facb7f71678cb884e541c3611051227ae66503
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script src="resources/spatial-navigation-utils.js"></script>
5 <script type="application/javascript">
7 var resultMap = [
8 ["Down", "e1"],
9 ["Down", "e2"],
10 ["Down", "e3"],
11 ["Up", "e2"],
12 ["Up", "e1"],
13 ["Up", "start"],
14 ["DONE", "DONE"]
17 if (window.testRunner) {
18 testRunner.dumpAsText();
19 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
20 window.internals.settings.setSpatialNavigationEnabled(true);
21 testRunner.waitUntilDone();
24 function runTest()
26 // starting the test itself: get to a known place.
27 document.getElementById("start").focus();
29 initTest(resultMap, testCompleted);
32 function testCompleted()
34 if (window.testRunner)
35 testRunner.notifyDone();
38 window.onload = runTest;
39 </script>
40 <style>
41 div.container1 { width: 100px;}
42 div.container2 { width: 100px;}
43 </style>
44 </head>
45 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml" style="padding:20px">
46 <div class="container1">
47 <a href="#" id="start">AAAAAAAAAA AAAAAAAAAA AA</a>
48 <a href="#" id="e1">AA AAAAAAAAAA AAAAAAAAAA</a>
49 </div>
50 <br><br>
51 <div class="container2">
52 <a href="#" id="e2">AAAAAAAAAA AAAAAAAAAA AA</a>
53 <span>B</span>
54 <a href="#" id="e3">AA AAAAAAAAAA AAAAAAAAAA</a>
55 </div>
60 <div id="console"></div>
61 This test is testing that we can handle 2 inline elements in the same line.
62 </body>
63 </html>