Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / svg-element-press.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 id="svg" width="4in" height="4in" role="button" aria-label="clickable circle" onclick="svgClicked();">
10         <circle cx="2in" cy="2in" r="1.75in" fill="green" stroke="black">
11             <title>Clickable circle</title>
12         </circle>
13     </svg>
14 </div>
15
16 <p id="description"></p>
17 <div id="console"></div>
18
19 <script>
20
21     window.jsTestIsAsync = true;
22
23     description("This tests that AXPress works on SVG elements");
24
25     function svgClicked() {
26         debug("SVG element WAS clicked with accessibility");
27         finishJSTest();
28     }
29
30     if (window.accessibilityController) {
31         var svg = accessibilityController.accessibleElementById("svg");
32         svg.press();
33     }
34
35 </script>
36
37 <script src="../resources/js-test-post.js"></script>
38 </body>
39 </html>