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

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: Added test 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-ignoredNodes-common.js"></scri pt>
6 <script>
7
8 function test() {
pfeldman 2015/04/28 15:49:36 \n before {
aboxhall 2015/04/28 18:14:20 Done.
9 var nodeInfo = {};
10 InspectorTest.trackGetChildNodesEvents(nodeInfo);
11
12 var maxId = 15;
13 InspectorTest.sendCommand("DOM.getDocument", {}, common_onGotDocument.bind(n ull, maxId));
14 }
15 </script>
16 </head>
17 <body onLoad="runTest();">
18 <div id="_1">Non-hidden div for comparison</div>
19 <div role="tree">
20 <div id="_2" role="treeitem">non-hidden treeitem</div>
21 <div id="_3">hidden non-treeitem</div>
22 </div>
23 <div role="img">
24 <svg id="_4">
25 <!-- Children of img role are presentational -->
26 <circle xmlns:svg="http://www.w3.org/2000/svg" cx="150px" cy="100px" r="50px" fill="#ff0000" stroke="#000000" stroke-width="5px"/>
27 </svg>
28 </div>
29 <button>
30 <span id="_5">Buttons are leaf nodes</span>
31 </button>
32 <div id="_6" aria-hidden="true">
33 <div id="_7">Descendant of aria-hidden node</div>
34 </div>
35 <!-- Known failure: image isn't ignored due to:
36 if (m_layoutObject->isLayoutBlockFlow() && m_layoutObject->childrenInline() && !canSetFocusAttribute()) {
37 if (toLayoutBlockFlow(m_layoutObject)->firstLineBox() || mouseButtonList ener()) {
38 -->
39 <img id="_8" alt="" src="foo.png">
40 <ol role="presentation" role="presentation" id="_9"><!-- list is presentatio nal -->
41 <li id="_10">List item also presentational</li>
42 <div id="_11">Div in list isn't presentational</div>
43 </ol>
44
45 <label for="checkbox" id="_12"><span id="_13">Content within label refers to label container</span></label>
46 <input type="checkbox" id="checkbox">
47
48 <div style="display: none" id="_14">Non-rendered div</div>
49
50 <canvas style="height: 1px; width: 1px;q" id="_15"></canvas>
51 </body>
52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698