OLD | NEW |
1 <html> | 1 <html> |
2 <!-- | 2 <!-- |
3 This test ensures the correctness of Spatial Navigation (SNav) algorithm ove
r single select element. | 3 This test ensures the correctness of Spatial Navigation (SNav) algorithm ove
r single select element. |
4 | 4 |
5 * Pre-conditions: | 5 * Pre-conditions: |
6 1) DRT support for SNav enable/disable. | 6 1) DRT support for SNav enable/disable. |
7 | 7 |
8 * Navigation steps: | 8 * Navigation steps: |
9 1) Loads this page, focus goes to "start" automatically. | 9 1) Loads this page, focus goes to "start" automatically. |
10 2) Focus moves away from select in 4 different directions to neighbor nodes
and back. | 10 2) Focus moves away from select in 4 different directions to neighbor nodes
and back. |
11 --> | 11 --> |
12 <head> | 12 <head> |
13 <script src="../js/resources/js-test-pre.js"></script> | 13 <script src="../../resources/js-test.js"></script> |
14 <script src="resources/spatial-navigation-utils.js"></script> | 14 <script src="resources/spatial-navigation-utils.js"></script> |
15 <script type="application/javascript"> | 15 <script type="application/javascript"> |
16 | 16 |
17 var resultMap = [ | 17 var resultMap = [ |
18 ["Down", "8"], | 18 ["Down", "8"], |
19 ["Up", "start"], | 19 ["Up", "start"], |
20 ["Up", "2"], | 20 ["Up", "2"], |
21 ["Down", "start"], | 21 ["Down", "start"], |
22 ["Right", "6"], | 22 ["Right", "6"], |
23 ["Left", "start"], | 23 ["Left", "start"], |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 <td style="vertical-align: top; text-align: center;"></td> | 68 <td style="vertical-align: top; text-align: center;"></td> |
69 <td style="vertical-align: top; text-align: center;"><a id="8" href="a
">8</a></td> | 69 <td style="vertical-align: top; text-align: center;"><a id="8" href="a
">8</a></td> |
70 <td style="vertical-align: top; text-align: center;"></td> | 70 <td style="vertical-align: top; text-align: center;"></td> |
71 </tr> | 71 </tr> |
72 </tbody> | 72 </tbody> |
73 </table> | 73 </table> |
74 <div id="console"></div> | 74 <div id="console"></div> |
75 </body> | 75 </body> |
76 </html> | 76 </html> |
77 | 77 |
OLD | NEW |