Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / spatial-navigation / snav-div-in-anchor.html
blob170e1edc478aad04749cdc8fa877992e82e861d6
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 ["DONE", "DONE"]
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
15 window.internals.settings.setSpatialNavigationEnabled(true);
16 testRunner.waitUntilDone();
19 function runTest()
21 // starting the test itself: get to a known place.
22 document.getElementById("start").focus();
24 initTest(resultMap, testCompleted);
27 function testCompleted()
29 if (window.testRunner)
30 testRunner.notifyDone();
33 window.onload = runTest;
34 </script>
35 </head>
36 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml" style="padding:20px">
37 <a href="#" id="start"><div>DivInLinkA</div></a>
38 <a href="#" id="e1"><div>DivInLinkB</div></a>
40 <div id="console"></div>
41 This test is testing that we can navigate on links with divs inside.
42 </body>
43 </html>