68 lines
2.2 KiB
HTML
68 lines
2.2 KiB
HTML
<!DOCTYPE html><!-- webkit-test-runner [ TabsToLinks=true SpatialNavigationEnabled=true ] -->
|
|
<html>
|
|
<!--
|
|
This test ensures the correctness of Spatial Navigation (SNav) algorithm from a non-focus scenario.
|
|
|
|
* Pre-conditions:
|
|
1) DRT support for SNav enable/disable.
|
|
|
|
* Navigation steps:
|
|
1) Loads this page and send key down.
|
|
2) The 1st link should be focused.
|
|
-->
|
|
<head>
|
|
<script src="../../resources/js-test-pre.js"></script>
|
|
<script src="resources/spatial-navigation-utils.js"></script>
|
|
<script type="application/javascript">
|
|
|
|
var resultMap = [
|
|
["Down", "1"],
|
|
["DONE", "DONE"]
|
|
];
|
|
|
|
if (window.testRunner) {
|
|
testRunner.dumpAsText();
|
|
testRunner.waitUntilDone();
|
|
}
|
|
|
|
function runTest()
|
|
{
|
|
// starting the test from no focused node.
|
|
initTest(resultMap, testCompleted);
|
|
}
|
|
|
|
function testCompleted()
|
|
{
|
|
if (window.testRunner)
|
|
testRunner.notifyDone();
|
|
}
|
|
|
|
window.onload = runTest;
|
|
|
|
</script>
|
|
<script src="../resources/js-test-post.js"></script>
|
|
</head>
|
|
<body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
|
|
<table style="text-align: left; width: 100%; margin-left: auto; margin-right: auto;" border="1" cellpadding="2" cellspacing="1">
|
|
<tbody>
|
|
<tr>
|
|
<td style="vertical-align: top; text-align: center;"><a id="1" href="a">1</a></td>
|
|
<td style="vertical-align: top; text-align: center;"><a id="2" href="a">2</a></td>
|
|
<td style="vertical-align: top; text-align: center;"><a id="3" href="a">3</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="vertical-align: top; text-align: center;"><a id="4" href="a">4</a></td>
|
|
<td style="vertical-align: top; text-align: center;"><a id="5" href="a">5</td>
|
|
<td style="vertical-align: top; text-align: center;"><a id="6" href="a">6</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="vertical-align: top; text-align: center;"><a id="7" href="a">7</a></td>
|
|
<td style="vertical-align: top; text-align: center;"><a id="8" href="a">8</a></td>
|
|
<td style="vertical-align: top; text-align: center;"><a id="9" href="a">9</a></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div id="console"></div>
|
|
</body>
|
|
</html>
|