blob: e3b26e254aa3adb4baf4eedb6e3601d47a7d52a8 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<svg width="500" height="300" xmlns="http://www.w3.org/2000/svg">
<g id="group1">
<title>SVG TITLE 1</title>
<rect x="10" y="10" width="200" height="100"
style="fill:none; stroke:blue; stroke-width:1px"/>
</g>
</svg>
<div id="console"></div>
<script>
description("This tests SVG group elements are accessible and that the svg:title element is returned properly.");
if (window.accessibilityController) {
debug("Verify that the SVG group is returned as an accessible element.");
var group1 = accessibilityController.accessibleElementById("group1");
shouldBe("group1.iphoneLabel", "'AXLabel: SVG TITLE 1'");
shouldBeTrue("group1.iphoneIsElement");
debug("\nVerify that you can hit-test to the SVG group.");
var hitTestElement = accessibilityController.elementAtPoint(group1.clickPointX, group1.clickPointY);
shouldBeTrue("hitTestElement.isEqual(group1)");
}
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>