Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / spatial-navigation / snav-zero-margin-content.html
blob1d4779eede8992de2c69df2505d7095ba7acf1c7
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;
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;
22 </style>
24 <script src="../../resources/js-test.js"></script>
25 <script src="resources/spatial-navigation-utils.js"></script>
26 <script type="application/javascript">
28 var resultMap = [
29 ["Right", "end"],
30 ["DONE", "DONE"]
33 if (window.testRunner) {
34 testRunner.dumpAsText();
35 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
36 window.internals.settings.setSpatialNavigationEnabled(true);
37 testRunner.waitUntilDone();
40 function runTest()
42 // starting the test itself: get to a known place.
43 document.getElementById("start").focus();
45 initTest(resultMap, testCompleted);
48 function testCompleted()
50 if (window.testRunner)
51 testRunner.notifyDone();
54 window.onload = runTest;
56 </script>
57 </head>
58 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
59 <span>
60 <div>
61 <nobr>
62 <a href="#" id="start"> test1 </a>
63 <a href="#" id="end"> test2 </a>
64 </nobr>
65 </div>
66 </span>
67 <div id="console"></div>
68 </body>
69 </html>