Update device orientation & motion permission native SPI as per latest proposal
[WebKit-https.git] / LayoutTests / accessibility / tabindex-elements-are-accessible.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7
8 <span tabindex="-1" id="item1">test</span>
9 <span tabindex="0" id="item2">test</span>
10 <span tabindex="1" id="item3">test</span>
11
12 <p tabindex="-1" id="item4">test
13
14
15 <p id="description"></p>
16 <div id="console"></div>
17
18 <script>
19
20     description("This tests that if tabindex is set on an object, it will be accessible (even if it is usually not)");
21
22     if (window.accessibilityController) {
23         for (var k = 1; k < 5; k++) {
24             var item = accessibilityController.accessibleElementById("item" + k);
25             debug("Item " + k + ": Is focusable: " + item.isFocusable);
26             debug("Item " + k + ": " + item.role);
27             debug("\n");
28         }
29     }
30
31 </script>
32
33 <script src="../resources/js-test-post.js"></script>
34 </body>
35 </html>