blob: dbd0385a51ec2976f2673a45e0bd7c10b27a0128 [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>
<ul aria-hidden="true">
<div aria-label="wrapper">
<div role="listbox" aria-hidden="true">
<div role="option">option</div>
<div role="option">option</div>
<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'");