Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / aria-checkbox-checked-mixed.html
blob9ebcaf5ebdc3e7b34ee042b26c333e42e10b9879
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body id="body">
8 <div id="element1" role="checkbox" aria-checked="mixed"></div>
9 <div id="element2" role="menuitemcheckbox" aria-checked="mixed"></div>
10 <div id="element3" role="radio" aria-checked="mixed"></div> <!-- Treat as false for radio role -->
11 <div id="element4" role="menuitemradio" aria-checked="mixed"></div> <!-- Treat as false for menuitemradio role -->
13 <p id="description"></p>
14 <div id="console"></div>
16 <script>
18 description("Check whether mixed value is reported properly");
20 if (window.accessibilityController) {
21 for (var i = 1; i <= 4; i++) {
22 var element = accessibilityController.accessibleElementById("element" + i);
23 debug("Role: " + element.role);
24 debug("Mixed: " + element.isButtonStateMixed);
28 </script>
30 </body>
31 </html>