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-figure.html, accessibility/name-calc-i
mg.html, accessibility/name-calc-presentational.html and accessibility/name-calc
-svg.html--> | |
27 <body onLoad="runTest();"> | |
28 <div class="tests"> | |
29 <figure data-dump id="figure1"> | |
30 <img src="resources/cake.png" alt="cake"> | |
31 </figure> | |
32 | |
33 <figure data-dump id="figure2" title="figure2-title"> | |
34 <img src="resources/cake.png" alt="cake"> | |
35 </figure> | |
36 | |
37 | |
38 <figure data-dump id="figure3" title="figure3-title"> | |
39 <figcaption>figcaption3</figcaption> | |
40 <img src="resources/cake.png" alt="cake"> | |
41 </figure> | |
42 | |
43 <figure data-dump id="figure4" title="figure4-title" aria-label="figure4-ari
a-label"> | |
44 <figcaption>figcaption4</figcaption> | |
45 <img src="resources/cake.png" alt="cake"> | |
46 </figure> | |
47 | |
48 <figure data-dump id="figure5" title="figure5-title" aria-label="figure5-ari
a-label" aria-labelledby="figure-labelledby5"> | |
49 <figcaption>figcaption5</figcaption> | |
50 <img src="resources/cake.png" alt="cake"> | |
51 </figure> | |
52 <span hidden="true" id="figure-labelledby5">figure5-aria-labelledby</span> | |
53 | |
54 <img data-dump id="img1" src="resources/cake.png"> | |
55 | |
56 <img data-dump id="img2" title="img2-title" src="resources/cake.png"> | |
57 | |
58 <img data-dump id="img3" title="img3-title" alt="img3-alt" src="resources/ca
ke.png"> | |
59 | |
60 <img data-dump id="img4" title="img4-title" alt="img4-alt" aria-label="img4-
aria-label" src="resources/cake.png"> | |
61 | |
62 <img data-dump id="img5" title="img5-title" alt="img5-alt" aria-label="img5-
aria-label" aria-labelledby="img-labelledby5" src="resources/cake.png"> | |
63 <span hidden="true" id="img-labelledby5">img5-aria-labelledby</span> | |
64 | |
65 <div data-dump tabIndex=0 role="link" id="link1"> | |
66 I | |
67 <img src="hidden.jpg" alt="do not" role="presentation" /> | |
68 like ice cream. | |
69 </div> | |
70 | |
71 <svg data-dump id="svg1"> | |
72 <title>svg1-title</title> | |
73 </svg> | |
74 </div> | |
75 </body> | |
76 </html> | |
OLD | NEW |