blob: 4082747c8044c1371d127aa6ca1ec2cbf4e2aae6 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<iframe id="frame1" src="image-map2.html" width=100 height=100 name="packageListFrame" title="All Packages">
</iframe>
<iframe id="frame2" src="image-map2.html" width=100 height=100 name="packageListFrame" >
</iframe>
<p id="description"></p>
<div id="console"></div>
<script>
description("This test makes sure that a frame with a title will use that value instead of the name.");
if (window.accessibilityController) {
document.getElementById("frame1").focus();
shouldBe("accessibilityController.focusedElement.description", "'AXDescription: All Packages'");
document.getElementById("frame2").focus();
shouldBe("accessibilityController.focusedElement.description", "'AXDescription: packageListFrame'");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>