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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/aria-checkbox-checked-mixed.html

Issue 2707263011: Test aria-pressed=mixed on windows (Closed)
Patch Set: git cl try 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
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body id="body"> 6 <body id="body">
7 7
8 <div id="element1" role="checkbox" aria-checked="mixed"></div> 8 <div id="element1" role="checkbox" aria-checked="mixed"></div>
9 <div id="element2" role="menuitemcheckbox" aria-checked="mixed"></div> 9 <div id="element2" role="menuitemcheckbox" aria-checked="mixed"></div>
10 <div id="element3" role="radio" aria-checked="mixed"></div> 10 <div id="element3" role="radio" aria-checked="mixed"></div>
(...skipping 11 matching lines...) Expand all
22 <div id="console"></div> 22 <div id="console"></div>
23 23
24 <script> 24 <script>
25 25
26 description("Check whether ARIA mixed state is reported properly"); 26 description("Check whether ARIA mixed state is reported properly");
27 27
28 if (window.accessibilityController) { 28 if (window.accessibilityController) {
29 for (var i = 1; i <= 10; i++) { 29 for (var i = 1; i <= 10; i++) {
30 var element = accessibilityController.accessibleElementById("element " + i); 30 var element = accessibilityController.accessibleElementById("element " + i);
31 debug("Role: " + element.role); 31 debug("Role: " + element.role);
32 debug("Mixed: " + element.isButtonStateMixed); 32 debug("Mixed: " + (element.checkedState === 'mixed'));
33 } 33 }
34 } 34 }
35 35
36 </script> 36 </script>
37 37
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698