1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
5 <script src=
"resources/spatial-navigation-utils.js"></script>
6 <script type=
"application/javascript">
24 if (window.testRunner) {
25 testRunner.dumpAsText();
26 testRunner.overridePreference(
"WebKitTabToLinksPreferenceKey",
1);
27 window.internals.settings.setSpatialNavigationEnabled(true);
32 // starting the test itself: get to a known place.
33 document.getElementById(
"start").focus();
35 initTest(resultMap, testCompleted);
38 function testCompleted()
43 window.onload = runTest;
48 <body id=
"some-content" xmlns=
"http://www.w3.org/1999/xhtml">
50 <p>This is a link
<a id=
"start" href=
"a">start of Test
</a>.
</p>
51 <video id=
"v1" controls
tabindex=
"0" src=
"../../media/content/test.mp4"></video>
53 <p>This is a link
<a id=
"i2" href=
"a">i2
</a>.
</p>
54 <video id=
"v3" controls
src=
"../../media/content/test.mp4"></video>
56 <p>This is a link
<a id=
"i4" href=
"a">i4
</a>.
</p>
57 <video id=
"v5" tabindex=
"0" src=
"../../media/content/test.mp4"></video>
59 <p>This is a link
<a id=
"i6" href=
"a">i6
</a>.
</p>
60 <audio id=
"a7" controls
src=
"../../media/content/test.wav"></audio>
62 <p>This is a link
<a id=
"i8" href=
"a">i8
</a>.
</p>
63 <!-- 'a9' is not focussable: no controls attribute as well no tab index.
64 Key down from 'i8' should go to 'end'. -->
65 <audio id=
"a9" src=
"../../media/content/test.mp4"></audio>
67 <p>This is a link
<a id=
"end" href=
"a">End of Test
</a>.
</p>
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 access
</p>