OLD | NEW |
---|---|
(Empty) | |
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"> | |
7 | |
8 <input id="element1" type="checkbox" /> <!-- Will set indeterminate state via J S --> | |
dmazzoni
2017/02/16 20:56:04
Maybe put this comment on the line above so it fit
aleventhal
2017/02/24 21:44:01
Done.
| |
9 <input id="element2" type="checkbox" /> <!-- Control--> | |
10 | |
11 <div> | |
12 <!-- Will be ::intederminate in CSS because no radio item selected yet --> | |
13 <input type="radio" name="radiogroup1" /> | |
14 <input id="element3" type="radio" name="radiogroup1" /> | |
15 </div> | |
16 | |
17 <div> | |
18 <!-- NOT mixed/intederminate because group has a selected radio button --> | |
19 <input type="radio" name="radiogroup2" /> | |
dmazzoni
2017/02/16 20:56:04
Might be nice to put an id on this one and check i
aleventhal
2017/02/24 21:44:01
Done.
| |
20 <input id="element4" type="radio" checked name="radiogroup2" /> | |
21 </div> | |
22 | |
23 <p id="description"></p> | |
24 <div id="console"></div> | |
25 | |
26 <script> | |
27 | |
28 description("Check whether native mixed state is reported properly"); | |
29 | |
30 // No way currently to do this via markup, must be via JS | |
31 document.getElementById('element1').indeterminate = true; | |
dmazzoni
2017/02/16 20:56:04
You could put a <script> tag right after the eleme
aleventhal
2017/02/24 21:44:01
Done.
| |
32 | |
33 if (window.accessibilityController) { | |
34 for (var i = 1; i <= 4; i++) { | |
35 var element = accessibilityController.accessibleElementById("element " + i); | |
36 debug("Role: " + element.role); | |
dmazzoni
2017/02/16 20:56:04
This is an old-style test, where you dump out text
aleventhal
2017/02/24 21:44:01
Instead of this one, right?
| |
37 debug("Mixed: " + element.isButtonStateMixed); | |
38 } | |
39 } | |
40 | |
41 </script> | |
42 | |
43 </body> | |
44 </html> | |
OLD | NEW |