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

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

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp 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 <input id='button1' type='button'>
16
17 <input id='button2' type='button' value='button-value2'>
18
19 <input id='button3' type='button' value='button-value3' title='button-titl e3'>
20
21 <input id='button4' type='button' title='button-title4'>
22
23 <input id='button5' type='button'>
24 <label for='button5'>button-label-5</label>
25
26 <label>button-label-6<input id='button6' type='button'></label>
27
28 <input id='button7' type='button' value='button-value7'>
29 <label for='button7'>button-label-7</label>
30
31 <input id='button8' type='button' value='button-value8' aria-label='button -aria-label-8'>
32 <label for='button8'>button-label-8</label>
33
34 <input id='button9' type='button' value='button-value9' aria-label='button -aria-label-9' aria-labelledby='label-for-button9'>
35 <label for='button9'>button-label-9</label>
36 <span id='label-for-button9'>button9-aria-labelledby</span>
37
38 <input id='submit1' type='submit'>
39
40 <input id='submit2' type='submit' value='submit-value2'>
41
42 <input id='submit3' type='submit' title='submit-title'>
43
44 <input id='reset1' type='reset'>
45
46 <input id='image-input1' type='image' src='resources/cake.png'>
47
48 <input id='image-input2' type='image' src='resources/cake.png' value='imag e-input-value2'>
49
50 <input id='image-input3' type='image' src='resources/cake.png' alt='image- input-alt3'>
51
52 <input id='image-input4' type='image' src='resources/cake.png' alt='image- input-alt4' value='image-input-value4'>
53
54 <input id='image-input5' type='image' src='resources/cake.png' title='imag e-input-title5'>
55 </div>
56 `, '');
57
58 var dumpAccessibilityNodesBySelectorAndCompleteTest =
59 (await testRunner.loadScript('../resources/accessibility-dumpAccessibility Nodes.js'))(testRunner, session);
60
61 var msg = await dp.DOM.getDocument();
62 dumpAccessibilityNodesBySelectorAndCompleteTest('input', false, msg);
63 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698