OLD | NEW |
1 <html> | 1 <html> |
2 <!-- | 2 <!-- |
3 This test ensures the cross iframe traversal correctness of Spatial Navigati
on | 3 This test ensures the cross iframe traversal correctness of Spatial Navigati
on |
4 algorithm: focusable elements in an <iframe> should be accessible even when | 4 algorithm: focusable elements in an <iframe> should be accessible even when |
5 the current focused element is in another <iframe> in the same page. | 5 the current focused element is in another <iframe> in the same page. |
6 | 6 |
7 * Pre-conditions: | 7 * Pre-conditions: |
8 1) DRT support for SNav enable/disable. | 8 1) DRT support for SNav enable/disable. |
9 | 9 |
10 * Navigation steps: | 10 * Navigation steps: |
(...skipping 25 matching lines...) Expand all Loading... |
36 ["Up", "2"], | 36 ["Up", "2"], |
37 ["Up", "2"], | 37 ["Up", "2"], |
38 ["Up", "1"], | 38 ["Up", "1"], |
39 ["Up", "start"], | 39 ["Up", "start"], |
40 ["DONE", "DONE"] | 40 ["DONE", "DONE"] |
41 ]; | 41 ]; |
42 | 42 |
43 if (window.testRunner) { | 43 if (window.testRunner) { |
44 testRunner.dumpAsText(); | 44 testRunner.dumpAsText(); |
45 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 45 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
46 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 46 window.internals.settings.setSpatialNavigationEnabled(true); |
47 testRunner.waitUntilDone(); | 47 testRunner.waitUntilDone(); |
48 } | 48 } |
49 | 49 |
50 function runTest() | 50 function runTest() |
51 { | 51 { |
52 // starting the test itself: get to a known place. | 52 // starting the test itself: get to a known place. |
53 document.getElementById("start").focus(); | 53 document.getElementById("start").focus(); |
54 | 54 |
55 initTest(resultMap, testCompleted); | 55 initTest(resultMap, testCompleted); |
56 } | 56 } |
(...skipping 17 matching lines...) Expand all Loading... |
74 <img src='no_image' width=50 height=300> | 74 <img src='no_image' width=50 height=300> |
75 <a id='2' href='a'><img src='no_image' width=30 height=30></a> | 75 <a id='2' href='a'><img src='no_image' width=30 height=30></a> |
76 </div> | 76 </div> |
77 </body> | 77 </body> |
78 "></iframe><br> | 78 "></iframe><br> |
79 | 79 |
80 <div><a id="end" href="a"><img src="resources/green.png" width=30 height=30>
</a></div> | 80 <div><a id="end" href="a"><img src="resources/green.png" width=30 height=30>
</a></div> |
81 <div id="console"></div> | 81 <div id="console"></div> |
82 </body> | 82 </body> |
83 </html> | 83 </html> |
OLD | NEW |