blob: 7192284e6eab2260c09f4b5e7f86365c47d585a1 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body id="body">
<a href="#" aria-haspopup="true" tabindex="0" id="link1">Link 1</a>
<a href="#" aria-haspopup="false" tabindex="0" id="link2">Link 2</a>
<a href="#" aria-haspopup="true" tabindex="0" id="link3">
<p id="paragraph1">Paragraph 1.</p>
</a>
<a href="#" aria-haspopup="false" tabindex="0" id="link4">
<p id="paragraph2">Paragraph 2.</p>
</a>
<a href="#" tabindex="0" id="link5">
<p id="paragraph3">Paragraph 3.</p>
</a>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that an element will report that it has a popup correctly.");
if (window.accessibilityController) {
shouldBe("accessibilityController.accessibleElementById('link1').hasPopup", "true");
shouldBe("accessibilityController.accessibleElementById('link2').hasPopup", "false");
shouldBe("accessibilityController.accessibleElementById('paragraph1').hasPopup", "true");
shouldBe("accessibilityController.accessibleElementById('paragraph2').hasPopup", "false");
shouldBe("accessibilityController.accessibleElementById('paragraph3').hasPopup", "false");
}
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>