| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script type="text/javascript" src="../resources/dom-protocol-test.js"></script> | |
| 4 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> | |
| 5 <script type="text/javascript" src="./../resources/accessibility-dumpAccessibili
tyNodes.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-inputs.html --> | |
| 27 <body onLoad="runTest();"> | |
| 28 <div class="tests"> | |
| 29 <input data-dump id="text1" type="text"> | |
| 30 | |
| 31 <input data-dump id="text2" type="text" title="text2-title"> | |
| 32 | |
| 33 <input data-dump id="text3" type="text" title="text3-title" aria-placeholder
="text3-aria-placeholder" placeholder="text3-placeholder"> | |
| 34 | |
| 35 <input data-dump id="text4" type="text" title="text4-title" aria-placeholder
="text4-aria-placeholder" placeholder="text4-placeholder"> | |
| 36 <label for="text4">label-for-text4</label> | |
| 37 | |
| 38 <input data-dump id="text5" type="text" title="text5-title" aria-placeholder
="text5-aria-placeholder" placeholder="text5-placeholder" aria-label="text5-aria
-label"> | |
| 39 <label for="text5">label-for-text5</label> | |
| 40 | |
| 41 <input data-dump id="text6" type="text" title="text6-title" aria-placeholder
="text6-aria-placeholder" placeholder="text6-placeholder" aria-label="text6-aria
-label" aria-labelledby="text-labelledby6"> | |
| 42 <label for="text6">label-for-text6</label> | |
| 43 <span id="text-labelledby6">labelledby-for-text6</span> | |
| 44 | |
| 45 <label>label-wrapping-text7<input data-dump id="text7" type="text" title="te
xt7-title"></label> | |
| 46 | |
| 47 <label for="dummy">label-wrapping-text8<input data-dump id="text8" type="tex
t"></label> | |
| 48 | |
| 49 <label for="text9">label-for-text9</label> | |
| 50 <label>label-wrapping-text9<input data-dump id="text9" type="text" title="te
xt9-title" aria-placeholder="text9-aria-placeholder" placeholder="text9-placehol
der"></label> | |
| 51 | |
| 52 <label>label-wrapping-text10<input data-dump id="text10" type="text" title="
text10-title" aria-placeholder="text10-aria-placeholder" placeholder="text10-pla
ceholder"> | |
| 53 </label> | |
| 54 | |
| 55 <input data-dump id="text11" type="text"> | |
| 56 <label for="text11">first-label-for-text11</label> | |
| 57 <label for="text11">second-label-for-text11</label> | |
| 58 | |
| 59 <input data-dump id="text12" type="text" title="text12-title" aria-placehold
er="text12-aria-placeholder"> | |
| 60 </div> | |
| 61 </body> | |
| 62 </html> | |
| OLD | NEW |