blob: 8d5634cb02e7ca641ec202fa1c6078da99f72fce [file] [log] [blame]
<html>
<head>
<script src="../js/resources/js-test-pre.js"></script>
<script src="resources/spatial-navigation-utils.js"></script>
<script type="application/javascript">
var resultMap = [
["Down", "end"],
["DONE", "DONE"]
];
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
window.internals.settings.setSpatialNavigationEnabled(true);
testRunner.waitUntilDone();
}
function runTest()
{
// starting the test itself: get to a known place.
document.getElementById("start").focus();
initTest(resultMap, testCompleted);
}
function testCompleted()
{
if (window.testRunner)
testRunner.notifyDone();
}
window.onload = runTest;
</script>
<script src="js/resources/js-test-post.js"></script>
</head>
<body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
<p>This is <a id="start" href="a">link_1</a>.</p>
<br>This is <a id="1" style="display:none;" href="a">you should not see me</a> hidden link.<br>
<p>This is <a id="end" href="a">link_2</a>.</p>
<div id="console"></div>
<p>This test is to test that focusable elements with display:none do not grab the focus.</p>
</body>
</html>