1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../resources/js-test.js"></script>
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>
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
);