Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / svg-group-element-with-title.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script src="../resources/accessibility-helper.js"></script>
6 </head>
7 <body id="body">
8
9 <svg width="500" height="300" xmlns="http://www.w3.org/2000/svg">
10   <g id="group1" role="group">
11     <title>SVG TITLE 1</title>
12     <rect x="10" y="10" width="200" height="100"
13       style="fill:none; stroke:blue; stroke-width:1px"/>
14   </g>
15 </svg>
16
17 <div id="console"></div>
18
19 <script>
20
21     description("This tests SVG group elements are accessible and that the svg:title element is returned properly.");
22
23     if (window.accessibilityController) {
24
25           debug("Verify that the SVG group is returned as an accessible element.");
26           var group1 = accessibilityController.accessibleElementById("group1");
27           shouldBe("group1.role", "'AXRole: AXGroup'");
28           shouldBeEqualToString("platformValueForW3CName(group1)", "SVG TITLE 1");
29
30           debug("\nVerify that you can hit-test to the SVG group.");
31           var hitTestElement = group1.elementAtPoint(group1.clickPointX, group1.clickPointY);
32           shouldBeTrue("hitTestElement.isEqual(group1)");
33     }
34
35 </script>
36
37 <script src="../resources/js-test-post.js"></script>
38 </body>
39 </html>