OLD | NEW |
1 <html> | 1 <html> |
2 <!-- | 2 <!-- |
3 This test ensures the correctness of a basic aspect of spatial navigation tr
aversal | 3 This test ensures the correctness of a basic aspect of spatial navigation tr
aversal |
4 routines: focusable elements in scrollable containers (e.g. <div>) should be | 4 routines: focusable elements in scrollable containers (e.g. <div>) should be |
5 accessible, including offscreen content. | 5 accessible, including offscreen content. |
6 | 6 |
7 * Pre-conditions: | 7 * Pre-conditions: |
8 1) DRT support for spatial navivation enable/disable. | 8 1) DRT support for spatial navivation enable/disable. |
9 | 9 |
10 * Navigation steps: | 10 * Navigation steps: |
11 1) Loads this page, focus goes to "start" automatically. | 11 1) Loads this page, focus goes to "start" automatically. |
12 2) Move focus down to the visible focusable element in | 12 2) Move focus down to the visible focusable element in |
13 scrollable div. | 13 scrollable div. |
14 3) Traverse the page through other focusable elements down the page. | 14 3) Traverse the page through other focusable elements down the page. |
15 and then back up. | 15 and then back up. |
16 | 16 |
17 * Expected results: All focusable element in scrollable content, including | 17 * Expected results: All focusable element in scrollable content, including |
18 offscreen ones, should be accessible via spatial navigation. --> | 18 offscreen ones, should be accessible via spatial navigation. --> |
19 <head> | 19 <head> |
20 <style> | 20 <style> |
21 :focus {outline: 1px solid black;} | 21 :focus {outline: 1px solid black;} |
22 </style> | 22 </style> |
23 <script src="../js/resources/js-test-pre.js"></script> | 23 <script src="../../resources/js-test.js"></script> |
24 <script src="resources/spatial-navigation-utils.js"></script> | 24 <script src="resources/spatial-navigation-utils.js"></script> |
25 <script type="application/javascript"> | 25 <script type="application/javascript"> |
26 | 26 |
27 var resultMap = [ | 27 var resultMap = [ |
28 ["Down", "2"], | 28 ["Down", "2"], |
29 ["Up", "start"], | 29 ["Up", "start"], |
30 ["DONE", "DONE"] | 30 ["DONE", "DONE"] |
31 ]; | 31 ]; |
32 | 32 |
33 if (window.testRunner) { | 33 if (window.testRunner) { |
(...skipping 30 matching lines...) Expand all Loading... |
64 </div> | 64 </div> |
65 | 65 |
66 <div> | 66 <div> |
67 <a href="#" id="2">This is an element</a><br> | 67 <a href="#" id="2">This is an element</a><br> |
68 </div> | 68 </div> |
69 <div id="console"></div> | 69 <div id="console"></div> |
70 <div>This test tests that a anchor element with only white spaces gives the
correct size in ContainerNode::getRect().</div> | 70 <div>This test tests that a anchor element with only white spaces gives the
correct size in ContainerNode::getRect().</div> |
71 </body> | 71 </body> |
72 </html> | 72 </html> |
73 | 73 |
OLD | NEW |