| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 (async function(testRunner) { | 
|  | 2   let {page, session, dp} = await testRunner.startHTML(` | 
|  | 3     <div>Non-hidden div for comparison</div> | 
|  | 4       <div role='tree'> | 
|  | 5           <div role='treeitem'>non-hidden treeitem</div> | 
|  | 6           <div data-dump >hidden non-treeitem</div> | 
|  | 7       </div> | 
|  | 8       <div role='img'> | 
|  | 9           <svg data-dump> | 
|  | 10               <!-- Children of img role are presentational --> | 
|  | 11               <circle xmlns:svg='http://www.w3.org/2000/svg' cx='150px' cy='100p
    x' r='50px' fill='#ff0000' stroke='#000000' stroke-width='5px'/> | 
|  | 12           </svg> | 
|  | 13       </div> | 
|  | 14       <button> | 
|  | 15           <span data-dump>Buttons are leaf nodes</span> | 
|  | 16       </button> | 
|  | 17       <div data-dump aria-hidden='true'> | 
|  | 18           <div data-dump>Descendant of aria-hidden node</div> | 
|  | 19       </div> | 
|  | 20       <ol role='none' data-dump><!-- list is presentational --> | 
|  | 21         <li data-dump>List item also presentational</li> | 
|  | 22         <div data-dump>Div in list isn't presentational</div> | 
|  | 23       </ol> | 
|  | 24 | 
|  | 25       <label for='checkbox' data-dump><span data-dump>Content within label refer
    s to label container</span></label> | 
|  | 26       <input type='checkbox' id='checkbox'> | 
|  | 27       <div style='display: none' data-dump> | 
|  | 28         Non-rendered div | 
|  | 29         <span data-dump>Span within non-rendered div</span> | 
|  | 30         <button aria-hidden='false'>aria-hidden false button</button> | 
|  | 31       </div> | 
|  | 32 | 
|  | 33       <canvas style='height: 1px; width: 1px;' data-dump></canvas> | 
|  | 34 | 
|  | 35       <canvas role='presentation' data-dump><div>Canvas fallback content</div></
    canvas> | 
|  | 36 | 
|  | 37       <select data-dump> | 
|  | 38         <option data-dump>Options should be</option> | 
|  | 39         <option>sent down even though</option> | 
|  | 40         <option>they are grandchildren</option> | 
|  | 41       </select> | 
|  | 42 | 
|  | 43       <button inert data-dump>inert button</button> | 
|  | 44       <div id='inert-root' inert> | 
|  | 45         <button data-dump>button in inert subtree</button> | 
|  | 46       </div> | 
|  | 47   `, ''); | 
|  | 48 | 
|  | 49   var dumpAccessibilityNodesBySelectorAndCompleteTest = | 
|  | 50       (await testRunner.loadScript('../resources/accessibility-dumpAccessibility
    Nodes.js'))(testRunner, session); | 
|  | 51 | 
|  | 52   var msg = await dp.DOM.getDocument(); | 
|  | 53   dumpAccessibilityNodesBySelectorAndCompleteTest('[data-dump]', true, msg); | 
|  | 54 }) | 
| OLD | NEW | 
|---|