Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / spatial-navigation / snav-hidden-iframe.html
blob8f00c5bf5d9b9f563c583c32ca26b23f95683348
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", "end"],
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;
35 </script>
36 </head>
38 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
39 <p>This is <a id="start" href="a">link_1</a>.</p>
40 <br>This is <iframe id="1" width=100 height=100 style="display:none" src="data:text/html,
41 <body>
42 <a id='11' href='http://a'>b</a>
43 <a id='12' href='http://a'>c</a>
44 <a id='13' href='http://a'>d</a>
45 </body>
46 "></iframe><br> hidden iframe.<br>
47 <p>This is <a id="end" href="a">link_2</a>.</p>
48 <div id="console"></div>
49 <p>This test is to test that iframe with display:none does not get focus, and neither do its descendants</p>
50 </body>
51 </html>