| OLD | NEW |
| (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-dumpAccessibilityNodes.js"><
/script> | |
| 6 <script> | |
| 7 | |
| 8 function test() | |
| 9 { | |
| 10 InspectorTest.sendCommand("DOM.getDocument", {}, (msg) => { | |
| 11 InspectorTest.dumpAccessibilityNodesBySelectorAndCompleteTest("[data-dum
p]", false, msg); | |
| 12 }); | |
| 13 } | |
| 14 | |
| 15 function done() { | |
| 16 document.body.classList.add("done"); | |
| 17 } | |
| 18 | |
| 19 </script> | |
| 20 <style> | |
| 21 body.done .tests { | |
| 22 display: none; | |
| 23 } | |
| 24 </style> | |
| 25 </head> | |
| 26 <!-- Compare with accessibility/name-calc-aria-labelledby.html, accessibility/na
me-calc-aria-label.html and accessibility/name-calc-aria-owns.html--> | |
| 27 <body onLoad="runTest();"> | |
| 28 <div class="tests"> | |
| 29 <div data-dump id="div">Div Contents</div> | |
| 30 | |
| 31 <button data-dump id="self">Contents of button</button> | |
| 32 | |
| 33 <button data-dump id="labelledby" aria-labelledby="label1">Contents</button> | |
| 34 <div id="label1">Label 1</div> | |
| 35 | |
| 36 <button data-dump id="labelledbySelf" aria-labelledby="labelledbySelf">Conte
nts</button> | |
| 37 | |
| 38 <button data-dump id="labelledby3" aria-labelledby="labelledby3 label3">Cont
ents</button> | |
| 39 <div id="label3">Label 3</div> | |
| 40 | |
| 41 <button data-dump id="labelledby4" aria-labelledby="label4">Contents</button
> | |
| 42 <div id="label4" aria-labelledby="label4chained">Contents 4</div> | |
| 43 <p id="label4chained">Contents 4 chained</p> | |
| 44 | |
| 45 <button data-dump id="labelledby5" aria-labelledby="label5">Contents</button
> | |
| 46 | |
| 47 <button data-dump id="labelledby6" aria-labelledby="label6">Contents</button
> | |
| 48 <div id="label6"></div> | |
| 49 | |
| 50 <button data-dump id="labelledby7" aria-labelledby="label7">Contents</button
> | |
| 51 <h3 id="label7" style="visibility: hidden">Invisible label</h3> | |
| 52 | |
| 53 <button data-dump id="labelledby8" aria-labelledby="label8">Contents</button
> | |
| 54 <h3 id="label8" style="display: none">Display-none label</h3> | |
| 55 | |
| 56 <button data-dump id="labelOnly" aria-label="Label">Contents</button> | |
| 57 | |
| 58 <button data-dump id="emptyLabel1" aria-label="">Contents</button> | |
| 59 | |
| 60 <button data-dump id="emptyLabel2" aria-label>Contents</button> | |
| 61 | |
| 62 <button data-dump id="labelledby9" aria-labelledby="label9" aria-label="Labe
l">Contents</button> | |
| 63 <div id="label9">Labelledby 9</div> | |
| 64 | |
| 65 <button data-dump id="labelledby10" aria-labelledby="label10">Contents</butt
on> | |
| 66 <div id="label10" aria-label="Label 10 label">Contents 10</div> | |
| 67 | |
| 68 <button data-dump id="labelledby11" aria-labelledby="label11">Contents</butt
on> | |
| 69 <div id="label11" aria-label="">Contents 11</div> | |
| 70 | |
| 71 <button data-dump id="labelledby12" aria-labelledby="label12">Contents</butt
on> | |
| 72 <div id="label12" aria-label="Label 12 label" aria-labelledby="label12chaine
d">Contents 12</div> | |
| 73 <p id="label12chained">Contents 12 chained</p> | |
| 74 | |
| 75 <input data-dump id="input1" aria-labelledby="list1"> | |
| 76 <ul id="list1" aria-owns="list1_item3"> | |
| 77 <li>A | |
| 78 <li>B | |
| 79 </ul> | |
| 80 <div role="listitem" id="list1_item3">C</div> | |
| 81 </div> | |
| 82 </body> | |
| 83 </html> | |
| OLD | NEW |