| 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("summary",
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-summary.html --> | |
| 27 <body onLoad="runTest();"> | |
| 28 <div class="tests"> | |
| 29 <!-- Need to test summary element which has no DOM node equivalent. | |
| 30 <details id="details1"> | |
| 31 <p>details1-content</p> | |
| 32 </details> | |
| 33 --> | |
| 34 | |
| 35 <details id="details2"> | |
| 36 <summary id="summary2" title="summary2-title"></summary> | |
| 37 <p>details2-content</p> | |
| 38 </details> | |
| 39 | |
| 40 <details id="details3"> | |
| 41 <summary id="summary3" title="summary3-title">summary3-contents</summary> | |
| 42 <p>details3-content</p> | |
| 43 </details> | |
| 44 | |
| 45 <details id="details4"> | |
| 46 <summary id="summary4" title="summary4-title" aria-label="summary4-aria-la
bel">summary4-contents</summary> | |
| 47 <p>details4-content</p> | |
| 48 </details> | |
| 49 | |
| 50 <details id="details5"> | |
| 51 <summary id="summary5" title="summary5-title" aria-label="summary5-aria-la
bel" aria-labelledby="labelledby5">summary5-contents</summary> | |
| 52 <p>details5-content</p> | |
| 53 </details> | |
| 54 <span hidden="true" id="labelledby5">summary5-aria-labelledby</span> | |
| 55 </div> | |
| 56 </body> | |
| 57 </html> | |
| OLD | NEW |