Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector-protocol / accessibility / accessibility-ignoredNodes.html
blob6eefb66534fb6e524209377cbdd37559aca1d7f4
1 <html>
2 <head>
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>
6 <script>
8 function test()
10 var nodeInfo = {};
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));
16 </script>
17 </head>
18 <body onLoad="runTest();">
19 <div id="_1">Non-hidden div for comparison</div>
20 <div role="tree">
21 <div id="_2" role="treeitem">non-hidden treeitem</div>
22 <div id="_3">hidden non-treeitem</div>
23 </div>
24 <div role="img">
25 <svg id="_4">
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"/>
28 </svg>
29 </div>
30 <button>
31 <span id="_5">Buttons are leaf nodes</span>
32 </button>
33 <div id="_6" aria-hidden="true">
34 <div id="_7">Descendant of aria-hidden node</div>
35 </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()) {
39 -->
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>
44 </ol>
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>
52 </body>
53 </html>