blob: e4c23986c1266b89011c0dd9d42c38c6c20a6a96 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<div role="menuitem">An ARIA menu item</div>
<div role="option">An ARIA option</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that having elements with ARIA role 'option' or 'menuitem' as children of something of Group role does not crash.");
if (window.layoutController) {
testRunner.dumpAsText();
}
if (window.accessibilityController) {
document.getElementById("body").focus();
webArea = accessibilityController.focusedElement;
// Just trying to get the accessible objects for the elements with
// role 'option' and 'menuitem' shouldn't make this crash.
element = webArea.childAtIndex(0);
element = webArea.childAtIndex(1);
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>