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

Side by Side Diff: LayoutTests/accessibility/readonly.html

Issue 1039023002: AX nodes that aren't contenteditable should be readonly. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@listboxes_too
Patch Set: Add test Created 5 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/accessibility/readonly-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 5
6 <div> 6 <div>
7 <a id="link1" href="#">Link</a> 7 <a id="link1" href="#">Link</a>
8 <button id="button1">Button</button> 8 <button id="button1">Button</button>
9 <input id="text1" type="text" value="Value"> 9 <input id="text1" type="text" value="Value">
10 <input id="checkbox1" type="checkbox" checked> 10 <input id="checkbox1" type="checkbox" checked>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 check("combobox1", true); 55 check("combobox1", true);
56 check("listbox1", true); 56 check("listbox1", true);
57 check("textarea1", false); 57 check("textarea1", false);
58 check("focusable1", true); 58 check("focusable1", true);
59 check("heading1", true); 59 check("heading1", true);
60 check("aria-button1", true); 60 check("aria-button1", true);
61 check("aria-togglebutton1", true); 61 check("aria-togglebutton1", true);
62 check("aria-link1", true); 62 check("aria-link1", true);
63 check("contenteditable_root1", false); 63 check("contenteditable_root1", false);
64 check("contenteditable_button1", false); 64 check("contenteditable_button1", false);
65
66 // An additional check for a mock AX object.
67 var axSelect = accessibilityController.accessibleElementById('combobox1');
68 var axMenuListPopup = axSelect.childAtIndex(0);
69 shouldBe("axMenuListPopup.role", "\"AXRole: AXMenuListPopup\"");
70 shouldBe("axMenuListPopup.isReadOnly", "true");
65 } 71 }
66 72
67 </script> 73 </script>
68 74
69 </body> 75 </body>
70 </html> 76 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/readonly-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698