OLD | NEW |
(Empty) | |
| 1 (async function(testRunner) { |
| 2 let {page, session, dp} = await testRunner.startHTML(` |
| 3 <style> |
| 4 body.done .tests { |
| 5 display: none; |
| 6 } |
| 7 </style> |
| 8 <script> |
| 9 function done() { |
| 10 document.body.classList.add('done'); |
| 11 } |
| 12 </script> |
| 13 <!-- Compare with accessibility/name-calc-figure.html, accessibility/name-ca
lc-img.html, accessibility/name-calc-presentational.html and accessibility/name-
calc-svg.html--> |
| 14 <div class='tests'> |
| 15 <!-- Need to test summary element which has no DOM node equivalent. |
| 16 <details id='details1'> |
| 17 <p>details1-content</p> |
| 18 </details> |
| 19 --> |
| 20 |
| 21 <details id='details2'> |
| 22 <summary id='summary2' title='summary2-title'></summary> |
| 23 <p>details2-content</p> |
| 24 </details> |
| 25 |
| 26 <details id='details3'> |
| 27 <summary id='summary3' title='summary3-title'>summary3-contents</summary
> |
| 28 <p>details3-content</p> |
| 29 </details> |
| 30 |
| 31 <details id='details4'> |
| 32 <summary id='summary4' title='summary4-title' aria-label='summary4-aria-
label'>summary4-contents</summary> |
| 33 <p>details4-content</p> |
| 34 </details> |
| 35 |
| 36 <details id='details5'> |
| 37 <summary id='summary5' title='summary5-title' aria-label='summary5-aria-
label' aria-labelledby='labelledby5'>summary5-contents</summary> |
| 38 <p>details5-content</p> |
| 39 </details> |
| 40 <span hidden='true' id='labelledby5'>summary5-aria-labelledby</span> |
| 41 </div> |
| 42 `, ''); |
| 43 |
| 44 var dumpAccessibilityNodesBySelectorAndCompleteTest = |
| 45 (await testRunner.loadScript('../resources/accessibility-dumpAccessibility
Nodes.js'))(testRunner, session); |
| 46 |
| 47 var msg = await dp.DOM.getDocument(); |
| 48 dumpAccessibilityNodesBySelectorAndCompleteTest('summary', false, msg); |
| 49 }) |
OLD | NEW |