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

Side by Side Diff: content/test/data/accessibility/aria/aria-searchbox-with-selection.html

Issue 1416873015: Text controls should expose their value instead of their name via IAccessibleText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed radio menu items test on Android. Created 5 years, 1 month 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
1 <!-- 1 <!--
2 @MAC-ALLOW:AXRole* 2 @MAC-ALLOW:AXRole*
3 @MAC-ALLOW:AXSubrole* 3 @MAC-ALLOW:AXSubrole*
4 @WIN-ALLOW:xml-roles*
5 @WIN-ALLOW:caret_offset* 4 @WIN-ALLOW:caret_offset*
5 @WIN-ALLOW:ia2_hypertext=*
6 @WIN-ALLOW:n_selections* 6 @WIN-ALLOW:n_selections*
7 @WIN-ALLOW:selection_start* 7 @WIN-ALLOW:selection_start*
8 @WIN-ALLOW:selection_end* 8 @WIN-ALLOW:selection_end*
9 @WIN-ALLOW:xml-roles*
9 --> 10 -->
10 <!DOCTYPE html> 11 <!DOCTYPE html>
11 <html> 12 <html>
12 <body> 13 <body>
13 <div id="searchbox" role="searchbox" tabindex="0">ARIA role searchbox.</div> 14 <div id="searchbox" role="searchbox" tabindex="0">ARIA role searchbox.</div>
14 <script> 15 <script>
15 var selection = window.getSelection(); 16 var selection = window.getSelection();
16 var selectionRange = document.createRange(); 17 var selectionRange = document.createRange();
17 var searchbox = document.getElementById('searchbox'); 18 var searchbox = document.getElementById('searchbox');
18 searchbox.focus(); 19 searchbox.focus();
19 selectionRange.selectNodeContents(searchbox); 20 selectionRange.selectNodeContents(searchbox);
20 selection.removeAllRanges(); 21 selection.removeAllRanges();
21 selection.addRange(selectionRange); 22 selection.addRange(selectionRange);
22 </script> 23 </script>
23 </body> 24 </body>
24 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698