blob: 6dec5887b4675704b288604ad557c7edd2c7d879 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<main id="main">main</main>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that the HTML5 main element correctly maps to AXLandmarkMain.");
if (window.accessibilityController) {
document.getElementById("body").focus();
var body = accessibilityController.focusedElement;
var main = accessibilityController.accessibleElementById("main");
shouldBe("main.role", "'AXRole: AXGroup'");
shouldBe("main.subrole", "'AXSubrole: AXLandmarkMain'");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>