3 This test ensures the cross iframe traversal correctness of spatial navigation:
4 focusable elements in nested inner frame should be accessible.
7 1) DRT support for spatial navigation enable/disable.
10 1) Loads this page, focus goes to "start" automatically.
11 2) Focus moves along the elements in the two level deep nested frame,
12 but going back to the main frame later on.
15 <script src=
"../../resources/js-test.js"></script>
16 <script src=
"resources/spatial-navigation-utils.js"></script>
17 <script type=
"application/javascript">
41 if (window.testRunner) {
42 testRunner.dumpAsText();
43 testRunner.overridePreference(
"WebKitTabToLinksPreferenceKey",
1);
44 window.internals.settings.setSpatialNavigationEnabled(true);
45 testRunner.waitUntilDone();
50 // starting the test itself: get to a known place.
51 document.getElementById(
"start").focus();
53 initTest(resultMap, testCompleted);
56 function testCompleted()
58 if (window.testRunner)
59 testRunner.notifyDone();
62 window.onload = runTest;
66 <table style=
"text-align: top;" border=
"0" cellpadding=
"3px" cellspacing=
"3px">
68 <td valign=
"top" width=
"10%">
69 <a id=
"start" href=
"#">Link
</a><br>
72 <iframe width=
"50%" height=
"100px" frameborder=
"1" src=
"resources/iframe.html"></iframe><br>
74 <td valign=
"top" width=
"10%">
75 <a id=
"9" href=
"#">Link
</a><br>
79 <td valign=
"top" width=
"10%">
80 <a id=
"10" href=
"#">Link
</a><br>
83 <p><a id=
"11" href=
"#">Here
</a> is a link.
</p>
85 <td valign=
"top" width=
"10%">
86 <a id=
"12" href=
"#">Link
</a><br>
90 <div id=
"console"></div>