| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script src="resources/spatial-navigation-utils.js"></script> | 5 <script src="resources/spatial-navigation-utils.js"></script> |
| 6 <script type="application/javascript"> | 6 <script type="application/javascript"> |
| 7 | 7 |
| 8 var resultMap = [ | 8 var resultMap = [ |
| 9 ["Up", "start"], | 9 ["Up", "start"], |
| 10 ["Down", "v1"], | 10 ["Down", "v1"], |
| 11 ["Down", "i2"], | 11 ["Down", "i2"], |
| 12 ["Down", "v3"], | 12 ["Down", "v3"], |
| 13 ["Down", "i4"], | 13 ["Down", "i4"], |
| 14 ["Down", "v5"], | 14 ["Down", "v5"], |
| 15 ["Down", "i6"], | 15 ["Down", "i6"], |
| 16 ["Down", "a7"], | 16 ["Down", "a7"], |
| 17 ["Down", "i8"], | 17 ["Down", "i8"], |
| 18 ["Down", "end"], | 18 ["Down", "end"], |
| 19 ["Up", "i8"], | 19 ["Up", "i8"], |
| 20 ["Down", "end"], | 20 ["Down", "end"], |
| 21 ["DONE", "DONE"] | 21 ["DONE", "DONE"] |
| 22 ]; | 22 ]; |
| 23 | 23 |
| 24 if (window.testRunner) { | 24 if (window.testRunner) { |
| 25 testRunner.dumpAsText(); | 25 testRunner.dumpAsText(); |
| 26 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 26 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 27 window.internals.settings.setSpatialNavigationEnabled(true); | 27 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); |
| 28 } | 28 } |
| 29 | 29 |
| 30 function runTest() | 30 function runTest() |
| 31 { | 31 { |
| 32 // starting the test itself: get to a known place. | 32 // starting the test itself: get to a known place. |
| 33 document.getElementById("start").focus(); | 33 document.getElementById("start").focus(); |
| 34 | 34 |
| 35 initTest(resultMap, testCompleted); | 35 initTest(resultMap, testCompleted); |
| 36 } | 36 } |
| 37 | 37 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 63 <!-- 'a9' is not focussable: no controls attribute as well no tab index. | 63 <!-- 'a9' is not focussable: no controls attribute as well no tab index. |
| 64 Key down from 'i8' should go to 'end'. --> | 64 Key down from 'i8' should go to 'end'. --> |
| 65 <audio id="a9" src="../../media/content/test.mp4"></audio> | 65 <audio id="a9" src="../../media/content/test.mp4"></audio> |
| 66 | 66 |
| 67 <p>This is a link <a id="end" href="a">End of Test</a>.</p> | 67 <p>This is a link <a id="end" href="a">End of Test</a>.</p> |
| 68 | 68 |
| 69 <div id="console"></div> | 69 <div id="console"></div> |
| 70 <p>This tests that a media elements ie: <code><Audio></code> or <code>
<video></code>, without tabindex are able to be reached through keyboard a
ccess</p> | 70 <p>This tests that a media elements ie: <code><Audio></code> or <code>
<video></code>, without tabindex are able to be reached through keyboard a
ccess</p> |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| OLD | NEW |