Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1662)

Side by Side Diff: LayoutTests/inspector-protocol/accessibility/accessibility-ignoredNodes.html

Issue 1076453004: Show reasons why nodes are ignored in accessibility sidebar (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a catch-all return to ignoredReasonName Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/dom-prot ocol-test.js"></script>
4 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
5 <script type="text/javascript" src="accessibility-ignoredNodesTest.js"></script>
6 <script>
7
8 function test()
9 {
10 var nodeInfo = {};
11 InspectorTest.trackGetChildNodesEvents(nodeInfo);
12
13 var ids = ["_1", "_2", "_3", "_4", "_5", "_6", "_7", "_8", "_9", "_10", "_11 ", "_12", "_13", "_14", "_15"];
14 InspectorTest.sendCommand("DOM.getDocument", {}, InspectorTest.dumpAccessibi lityNodesByIdrefAndCompleteTest.bind(null, ids));
15 }
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() || mouseButtonList ener()) {
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>
45
46 <label for="checkbox" id="_12"><span id="_13">Content within label refers to label container</span></label>
47 <input type="checkbox" id="checkbox">
48
49 <div style="display: none" id="_14">Non-rendered div</div>
50
51 <canvas style="height: 1px; width: 1px;q" id="_15"></canvas>
52 </body>
53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698