Update device orientation & motion permission native SPI as per latest proposal
[WebKit-https.git] / LayoutTests / accessibility / svg-element-with-aria-role.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 <div class="contents">
9   <svg xmlns="http://www.w3.org/2000/svg" id="test1" role="graphics-document">
10     <g role="graphics-object" id="test2"></g>
11   </svg>
12   <svg xmlns="http://www.w3.org/2000/svg" id="test3" role="button" aria-label="click me">
13     <rect fill="gray" stroke="black" width="60" height="15" />
14   </svg>
15 </div>
16
17 <p id="description"></p>
18 <div id="console"></div>
19
20 <script>
21     description("This tests that ARIA roles used on SVG elements are exposed.")
22     if (window.accessibilityController) {
23         var test = accessibilityController.accessibleElementById("test1");
24         debug("test1: " + test.role + " " + test.subrole);
25
26         test = accessibilityController.accessibleElementById("test2");
27         debug("test2: " + test.role + " " + test.subrole);
28
29         test = accessibilityController.accessibleElementById("test3");
30         debug("test3: " + test.role + " " + test.subrole);
31     }
32
33 </script>
34
35 <script src="../resources/js-test-post.js"></script>
36 </body>
37 </html>