| 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 13 matching lines...) Expand all Loading... |
| 24 ["Right", "3"], | 24 ["Right", "3"], |
| 25 ["Left", "2"], | 25 ["Left", "2"], |
| 26 ["Left", "1"], | 26 ["Left", "1"], |
| 27 ["Left", "start"], | 27 ["Left", "start"], |
| 28 ["DONE", "DONE"] | 28 ["DONE", "DONE"] |
| 29 ]; | 29 ]; |
| 30 | 30 |
| 31 if (window.testRunner) { | 31 if (window.testRunner) { |
| 32 testRunner.dumpAsText(); | 32 testRunner.dumpAsText(); |
| 33 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 33 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 34 window.internals.settings.setSpatialNavigationEnabled(true); | 34 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); |
| 35 testRunner.waitUntilDone(); | 35 testRunner.waitUntilDone(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 function runTest() | 38 function runTest() |
| 39 { | 39 { |
| 40 // starting the test itself: get to a known place. | 40 // starting the test itself: get to a known place. |
| 41 document.getElementById("start").focus(); | 41 document.getElementById("start").focus(); |
| 42 | 42 |
| 43 initTest(resultMap, testCompleted); | 43 initTest(resultMap, testCompleted); |
| 44 } | 44 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 65 <a id='2' href='http://a'>c</a> | 65 <a id='2' href='http://a'>c</a> |
| 66 <a id='3' href='http://a'>d</a> | 66 <a id='3' href='http://a'>d</a> |
| 67 </body> | 67 </body> |
| 68 "></iframe><br> | 68 "></iframe><br> |
| 69 </td> | 69 </td> |
| 70 </tr> | 70 </tr> |
| 71 </table> | 71 </table> |
| 72 <div id="console"></div> | 72 <div id="console"></div> |
| 73 </body> | 73 </body> |
| 74 </html> | 74 </html> |
| OLD | NEW |