Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-labelledby.js

Issue 2951183002: [DevTools] Move inspector-protocol/accessibility tests to new harness (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 (async function(testRunner) {
2 let {page, session, dp} = await testRunner.startHTML(`
3 <style>
4 body.done .tests {
5 display: none;
6 }
7 </style>
8 <script>
9 function done() {
10 document.body.classList.add('done');
11 }
12 </script>
13 <!-- Compare with accessibility/name-calc-figure.html, accessibility/name-ca lc-img.html, accessibility/name-calc-presentational.html and accessibility/name- calc-svg.html-->
14 <div class='tests'>
15 <div data-dump id='div'>Div Contents</div>
16
17 <button data-dump id='self'>Contents of button</button>
18
19 <button data-dump id='labelledby' aria-labelledby='label1'>Contents</butto n>
20 <div id='label1'>Label 1</div>
21
22 <button data-dump id='labelledbySelf' aria-labelledby='labelledbySelf'>Con tents</button>
23
24 <button data-dump id='labelledby3' aria-labelledby='labelledby3 label3'>Co ntents</button>
25 <div id='label3'>Label 3</div>
26
27 <button data-dump id='labelledby4' aria-labelledby='label4'>Contents</butt on>
28 <div id='label4' aria-labelledby='label4chained'>Contents 4</div>
29 <p id='label4chained'>Contents 4 chained</p>
30
31 <button data-dump id='labelledby5' aria-labelledby='label5'>Contents</butt on>
32
33 <button data-dump id='labelledby6' aria-labelledby='label6'>Contents</butt on>
34 <div id='label6'></div>
35
36 <button data-dump id='labelledby7' aria-labelledby='label7'>Contents</butt on>
37 <h3 id='label7' style='visibility: hidden'>Invisible label</h3>
38
39 <button data-dump id='labelledby8' aria-labelledby='label8'>Contents</butt on>
40 <h3 id='label8' style='display: none'>Display-none label</h3>
41
42 <button data-dump id='labelOnly' aria-label='Label'>Contents</button>
43
44 <button data-dump id='emptyLabel1' aria-label=''>Contents</button>
45
46 <button data-dump id='emptyLabel2' aria-label>Contents</button>
47
48 <button data-dump id='labelledby9' aria-labelledby='label9' aria-label='La bel'>Contents</button>
49 <div id='label9'>Labelledby 9</div>
50
51 <button data-dump id='labelledby10' aria-labelledby='label10'>Contents</bu tton>
52 <div id='label10' aria-label='Label 10 label'>Contents 10</div>
53
54 <button data-dump id='labelledby11' aria-labelledby='label11'>Contents</bu tton>
55 <div id='label11' aria-label=''>Contents 11</div>
56
57 <button data-dump id='labelledby12' aria-labelledby='label12'>Contents</bu tton>
58 <div id='label12' aria-label='Label 12 label' aria-labelledby='label12chai ned'>Contents 12</div>
59 <p id='label12chained'>Contents 12 chained</p>
60
61 <input data-dump id='input1' aria-labelledby='list1'>
62 <ul id='list1' aria-owns='list1_item3'>
63 <li>A
64 <li>B
65 </ul>
66 <div role='listitem' id='list1_item3'>C</div>
67 </div>
68 `, '');
69
70 var dumpAccessibilityNodesBySelectorAndCompleteTest =
71 (await testRunner.loadScript('../resources/accessibility-dumpAccessibility Nodes.js'))(testRunner, session);
72
73 var msg = await dp.DOM.getDocument();
74 dumpAccessibilityNodesBySelectorAndCompleteTest('[data-dump]', false, msg);
75 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698