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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input.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 <input data-dump id='text1' type='text'>
16
17 <input data-dump id='text2' type='text' title='text2-title'>
18
19 <input data-dump id='text3' type='text' title='text3-title' aria-placehold er='text3-aria-placeholder' placeholder='text3-placeholder'>
20
21 <input data-dump id='text4' type='text' title='text4-title' aria-placehold er='text4-aria-placeholder' placeholder='text4-placeholder'>
22 <label for='text4'>label-for-text4</label>
23
24 <input data-dump id='text5' type='text' title='text5-title' aria-placehold er='text5-aria-placeholder' placeholder='text5-placeholder' aria-label='text5-ar ia-label'>
25 <label for='text5'>label-for-text5</label>
26
27 <input data-dump id='text6' type='text' title='text6-title' aria-placehold er='text6-aria-placeholder' placeholder='text6-placeholder' aria-label='text6-ar ia-label' aria-labelledby='text-labelledby6'>
28 <label for='text6'>label-for-text6</label>
29 <span id='text-labelledby6'>labelledby-for-text6</span>
30
31 <label>label-wrapping-text7<input data-dump id='text7' type='text' title=' text7-title'></label>
32
33 <label for='dummy'>label-wrapping-text8<input data-dump id='text8' type='t ext'></label>
34
35 <label for='text9'>label-for-text9</label>
36 <label>label-wrapping-text9<input data-dump id='text9' type='text' title=' text9-title' aria-placeholder='text9-aria-placeholder' placeholder='text9-placeh older'></label>
37
38 <label>label-wrapping-text10<input data-dump id='text10' type='text' title ='text10-title' aria-placeholder='text10-aria-placeholder' placeholder='text10-p laceholder'>
39 </label>
40
41 <input data-dump id='text11' type='text'>
42 <label for='text11'>first-label-for-text11</label>
43 <label for='text11'>second-label-for-text11</label>
44
45 <input data-dump id='text12' type='text' title='text12-title' aria-placeho lder='text12-aria-placeholder'>
46 </div>
47 `, '');
48
49 var dumpAccessibilityNodesBySelectorAndCompleteTest =
50 (await testRunner.loadScript('../resources/accessibility-dumpAccessibility Nodes.js'))(testRunner, session);
51
52 var msg = await dp.DOM.getDocument();
53 dumpAccessibilityNodesBySelectorAndCompleteTest('[data-dump]', false, msg);
54 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698