blob: 2b6fbfbbd9bda7fb2fa9dd1273ed8456d5d2a138 [file] [log] [blame]
<a id="start" href="#">Start</a><br>
<iframe id="frameA" src="data:text/html,
<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>