OLD | NEW |
(Empty) | |
| 1 (async function(testRunner) { |
| 2 let {page, session, dp} = await testRunner.startHTML(` |
| 3 <input data-dump aria-errormessage='err'> |
| 4 <h3 id='err'>This text field has an error!</h3> |
| 5 |
| 6 <img data-dump aria-details='d' aria-label='Label'> |
| 7 <div id='d'>Details</div> |
| 8 |
| 9 <button data-dump aria-keyshortcuts='Ctrl+A'>Select All</button> |
| 10 |
| 11 <input data-dump type='checkbox' aria-roledescription='Lightswitch' checked> |
| 12 `, ''); |
| 13 |
| 14 var dumpAccessibilityNodesBySelectorAndCompleteTest = |
| 15 (await testRunner.loadScript('../resources/accessibility-dumpAccessibility
Nodes.js'))(testRunner, session); |
| 16 |
| 17 var msg = await dp.DOM.getDocument(); |
| 18 dumpAccessibilityNodesBySelectorAndCompleteTest('[data-dump]', false, msg); |
| 19 }) |
OLD | NEW |