blob: 58a312cdf9165639f33806834082ba31c4c96a7f [file] [log] [blame]
<script src="../resources/js-test.js"></script>
<body id="body">
<div id="container" aria-label="container">
<table border=1 summary="test" aria-hidden="true">
<div role="grid" aria-hidden="true">
<div role="row"><div role="gridcell">cell</div></div>
<ul aria-hidden="true">
<div aria-label="wrapper">
<select size=10 aria-hidden="true">
<p id="description"></p>
<div id="console"></div>
description("This tests that aria-hidden works as expected on elements that are subclasses of AccessibilityRenderObject");
if (window.accessibilityController) {
var container = accessibilityController.accessibleElementById("container");
// first child is an AXGroup that has no children
var child = container.childAtIndex(0);
shouldBe("child.childrenCount", "0");
// The second child we ask for from the web area should be the heading, and we should have skipped over everything else.
child = container.childAtIndex(1);
shouldBe("child.role", "'AXRole: AXHeading'");