OLD | NEW |
1 <html> | 1 <html> |
2 <!-- | 2 <!-- |
3 This test ensures the basic iframe traversal correctness of Spatial Navigati
on | 3 This test ensures the basic iframe traversal correctness of Spatial Navigati
on |
4 algorithm: focusable elements in a <iframe> should be accessible. | 4 algorithm: focusable elements in a <iframe> should be accessible. |
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 20 matching lines...) Expand all Loading... |
31 ["Right", "7"], | 31 ["Right", "7"], |
32 ["Up", "3"], | 32 ["Up", "3"], |
33 ["Up", "2"], | 33 ["Up", "2"], |
34 ["Up", "1"], | 34 ["Up", "1"], |
35 ["DONE", "DONE"] | 35 ["DONE", "DONE"] |
36 ]; | 36 ]; |
37 | 37 |
38 if (window.testRunner) { | 38 if (window.testRunner) { |
39 testRunner.dumpAsText(); | 39 testRunner.dumpAsText(); |
40 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 40 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
41 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 41 window.internals.settings.setSpatialNavigationEnabled(true); |
42 testRunner.waitUntilDone(); | 42 testRunner.waitUntilDone(); |
43 } | 43 } |
44 | 44 |
45 function runTest() | 45 function runTest() |
46 { | 46 { |
47 // starting the test itself: get to a known place. | 47 // starting the test itself: get to a known place. |
48 document.getElementById("start").focus(); | 48 document.getElementById("start").focus(); |
49 | 49 |
50 initTest(resultMap, testCompleted); | 50 initTest(resultMap, testCompleted); |
51 } | 51 } |
(...skipping 26 matching lines...) Expand all Loading... |
78 <a id='4' href='a'>g</a> | 78 <a id='4' href='a'>g</a> |
79 <a id='5' href='a'>h</a> | 79 <a id='5' href='a'>h</a> |
80 <a id='6' href='a'>i</a> | 80 <a id='6' href='a'>i</a> |
81 </body> | 81 </body> |
82 "></iframe><br> | 82 "></iframe><br> |
83 | 83 |
84 <a id="end" href="a">a</a> | 84 <a id="end" href="a">a</a> |
85 <div id="console"></div> | 85 <div id="console"></div> |
86 </body> | 86 </body> |
87 </html> | 87 </html> |
OLD | NEW |