3 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/dom-protocol-test.js"></script>
4 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
5 <script type=
"text/javascript" src=
"accessibility-ignoredNodesTest.js"></script>
11 InspectorTest
.trackGetChildNodesEvents(nodeInfo
);
13 var ids
= ["_1", "_2", "_3", "_4", "_5", "_6", "_7", "_8", "_9", "_10", "_11", "_12", "_13", "_14", "_15"];
14 InspectorTest
.sendCommand("DOM.getDocument", {}, InspectorTest
.dumpAccessibilityNodesByIdrefAndCompleteTest
.bind(null, ids
));
18 <body onLoad=
"runTest();">
19 <div id=
"_1">Non-hidden div for comparison
</div>
21 <div id=
"_2" role=
"treeitem">non-hidden treeitem
</div>
22 <div id=
"_3">hidden non-treeitem
</div>
26 <!-- Children of img role are presentational -->
27 <circle xmlns:
svg=
"http://www.w3.org/2000/svg" cx=
"150px" cy=
"100px" r=
"50px" fill=
"#ff0000" stroke=
"#000000" stroke-width=
"5px"/>
31 <span id=
"_5">Buttons are leaf nodes
</span>
33 <div id=
"_6" aria-hidden=
"true">
34 <div id=
"_7">Descendant of aria-hidden node
</div>
36 <!-- Known failure: image isn't ignored due to:
37 if (m_layoutObject->isLayoutBlockFlow() && m_layoutObject->childrenInline() && !canSetFocusAttribute()) {
38 if (toLayoutBlockFlow(m_layoutObject)->firstLineBox() || mouseButtonListener()) {
40 <img id=
"_8" alt=
"" src=
"foo.png">
41 <ol role=
"none" id=
"_9"><!-- list is presentational -->
42 <li id=
"_10">List item also presentational
</li>
43 <div id=
"_11">Div in list isn't presentational
</div>
46 <label for=
"checkbox" id=
"_12"><span id=
"_13">Content within label refers to label container
</span></label>
47 <input type=
"checkbox" id=
"checkbox">
49 <div style=
"display: none" id=
"_14">Non-rendered div
</div>
51 <canvas style=
"height: 1px; width: 1px;q" id=
"_15"></canvas>