OLD | NEW |
(Empty) | |
| 1 (async function(testRunner) { |
| 2 let {page, session, dp} = await testRunner.startHTML(` |
| 3 <h3 id='rg1_label'>Lunch Options</h3> |
| 4 <ul id='rg1' class='radiogroup' role='radiogroup' aria-labelledby='rg1_label
' aria-activedescendant='rg1-r4' tabindex='0' data-dump> |
| 5 <li id='rg1-r1' tabindex='-1' role='radio' aria-checked='false'> |
| 6 Thai |
| 7 </li> |
| 8 <li id='rg1-r2' tabindex='-1' role='radio' aria-checked='false'> |
| 9 Subway |
| 10 </li> |
| 11 <li id='rg1-r3' tabindex='-1' role='radio' aria-checked='false'> |
| 12 Jimmy Johns |
| 13 </li> |
| 14 <li id='rg1-r4' tabindex='-1' role='radio' aria-checked='true'> |
| 15 Radio Maria |
| 16 </li> |
| 17 <li id='rg1-r5' tabindex='-1' role='radio' aria-checked='false'> |
| 18 Rainbow Gardens |
| 19 </li> |
| 20 </ul> |
| 21 |
| 22 <!-- Start of second Radio Group --> |
| 23 <h3 id='rg2_label'>Drink Options</h3> |
| 24 <ul id='rg2' role='radiogroup' aria-labelledby='rg2_label' aria-activedescen
dant='' tabindex='0' data-dump> |
| 25 <li id='rg2-r1' tabindex='-1' role='radio' aria-checked='false'> |
| 26 Water |
| 27 </li> |
| 28 <li id='rg2-r2' tabindex='-1' role='radio' aria-checked='false'> |
| 29 Tea |
| 30 </li> |
| 31 <li id='rg2-r3' tabindex='-1' role='radio' aria-checked='false'> |
| 32 Coffee |
| 33 </li> |
| 34 <li id='rg2-r4' tabindex='-1' role='radio' aria-checked='false'> |
| 35 Cola |
| 36 </li> |
| 37 <li id='rg2-r5' tabindex='-1' role='radio' aria-checked='false'> |
| 38 Ginger Ale |
| 39 </li> |
| 40 </ul> |
| 41 `, ''); |
| 42 |
| 43 var dumpAccessibilityNodesBySelectorAndCompleteTest = |
| 44 (await testRunner.loadScript('../resources/accessibility-dumpAccessibility
Nodes.js'))(testRunner, session); |
| 45 |
| 46 var msg = await dp.DOM.getDocument(); |
| 47 dumpAccessibilityNodesBySelectorAndCompleteTest('[data-dump]', false, msg); |
| 48 }) |
OLD | NEW |