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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/html-input-mixed.html

Issue 2694903010: AX checked state changes (Closed)
Patch Set: Remove whitespace change Created 3 years, 10 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
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698