| <a id="start" href="#">Start</a><br> |
| <iframe id="frameA" srcdoc=" |
| <body id='frameAbody'> |
| <a id='a' href='%23' style='margin-left: 125px'>a</a> |
| </body>" |
| ></iframe><br> |
| <a id="b" href="#">b</a> |
| <a id="c" href="#" style="margin-left: 125px;">c</a> |
| |
| <p>When spatnav exits an iframe, it goes to the closest focusable. Here: c.</p> |
| |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="resources/snav-testharness.js"></script> |
| <script> |
| var resultMap = [ |
| ["Down", "frameA,frameAbody"], |
| ["Down", "frameA,a"], |
| ["Down", "c"], |
| ]; |
| // Start at a known place. |
| document.getElementById("start").focus(); |
| snav.assertFocusMoves(resultMap); |
| </script> |