OLD | NEW |
1 <html> | 1 <html> |
2 <!-- | 2 <!-- |
3 This test ensures the basic traversal correctness of Spatial Navigation | 3 This test ensures the basic traversal correctness of Spatial Navigation |
4 algorithm: iframes without any focusable content should be ignored. | 4 algorithm: iframes without any focusable content should be ignored. |
5 | 5 |
6 * Pre-conditions: | 6 * Pre-conditions: |
7 1) DRT support for SNav enable/disable. | 7 1) DRT support for SNav enable/disable. |
8 | 8 |
9 * Navigation steps: | 9 * Navigation steps: |
10 1) Loads this page, focus goes to "start" automatically. | 10 1) Loads this page, focus goes to "start" automatically. |
(...skipping 19 matching lines...) Expand all Loading... |
30 ["Up" , "end"], | 30 ["Up" , "end"], |
31 ["Up" , "end"], | 31 ["Up" , "end"], |
32 ["Up" , "end"], | 32 ["Up" , "end"], |
33 ["Up" , "start"], | 33 ["Up" , "start"], |
34 ["DONE", "DONE"] | 34 ["DONE", "DONE"] |
35 ]; | 35 ]; |
36 | 36 |
37 if (window.testRunner) { | 37 if (window.testRunner) { |
38 testRunner.dumpAsText(); | 38 testRunner.dumpAsText(); |
39 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 39 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
40 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 40 window.internals.settings.setSpatialNavigationEnabled(true); |
41 testRunner.waitUntilDone(); | 41 testRunner.waitUntilDone(); |
42 } | 42 } |
43 | 43 |
44 function runTest() | 44 function runTest() |
45 { | 45 { |
46 // starting the test itself: get to a known place. | 46 // starting the test itself: get to a known place. |
47 document.getElementById("start").focus(); | 47 document.getElementById("start").focus(); |
48 | 48 |
49 initTest(resultMap, testCompleted); | 49 initTest(resultMap, testCompleted); |
50 } | 50 } |
(...skipping 20 matching lines...) Expand all Loading... |
71 <body> | 71 <body> |
72 <img width=120 height=200 src='resources/green.png'> | 72 <img width=120 height=200 src='resources/green.png'> |
73 </body> | 73 </body> |
74 "></iframe><br> | 74 "></iframe><br> |
75 | 75 |
76 <a id="end" href="a">e</a> | 76 <a id="end" href="a">e</a> |
77 <div id="console"></div> | 77 <div id="console"></div> |
78 This is to test that an iframe with no focusable content still scrolls | 78 This is to test that an iframe with no focusable content still scrolls |
79 </body> | 79 </body> |
80 </html> | 80 </html> |
OLD | NEW |