blob: 54f427aa719e9786519fc82aeb612a6dac42737d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body>
<a id="link" href="#" title="LINK"><img alt="" src="empty.png" width=100 height=100></a>
<div id="heading" role="heading" aria-label="HEADING" style='border:1px solid black; width:100px; height:100px;'></div>
<script>
//description("This test makes sure that links or headers that don't have children still appear in accessibility. The link doesn't have children because the image as a zero length alt tag.");
if (window.accessibilityController) {
var obj = accessibilityController.accessibleElementById("link");
var succeeded = !obj.isIgnored && obj.description == "AXLabel: LINK";
// shouldBe("succeeded", "true");
var failed = false;
if (!succeeded) {
failed = true;
}
obj = accessibilityController.accessibleElementById("heading");
succeeded = !obj.isIgnored && obj.description == "AXLabel: HEADING";
// shouldBe("succeeded", "true");
if (!succeeded) {
failed = true;
}
if (failed)
alert("Tests failed");
else
alert("Tests passed");
}
successfullyParsed = true;
</script>
</body>
</html>