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

Unified Diff: LayoutTests/accessibility/role-attribute.html

Issue 1004803004: Add handling to respect role attribute in AXObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/role-attribute-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/role-attribute.html
diff --git a/LayoutTests/accessibility/role-attribute.html b/LayoutTests/accessibility/role-attribute.html
new file mode 100644
index 0000000000000000000000000000000000000000..839c5a812be347f9a32a4a1bfa20a674beb5e881
--- /dev/null
+++ b/LayoutTests/accessibility/role-attribute.html
@@ -0,0 +1,35 @@
+<script src="../resources/js-test.js"></script>
+<script src="../resources/accessibility-helper.js"></script>
+<ul role="radiogroup">
+ <li role="radio">Explicit Item 1</li>
+ <li role="radio">Explicit Item 2</li>
+ <li role="radio">Explicit Item 3</li>
+</ul>
+<ol>
+ <li>Implicit Item 1</li>
+ <li>Implicit Item 2</li>
+ <li>Implicit Item 3</li>
+</ol>
+<select multiple role="group">
+ <option role="textbox">Explicit Option 1</option>
+ <option role="textbox">Explicit Option 2</option>
+</select>
+<select multiple>
+ <option>Implicit Option 1</option>
+ <option>Implicit Option 2</option>
+</select>
+<progress value="22" max="100" role="status"></progress>
+<progress value="22" max="100"></progress>
+<input type="range" name="points" min="0" max="10" role="status">
+<input type="range" name="points" min="0" max="10">
+<p>End of test</p>
+<p id="description"></p>
+<div id="console"></div>
+<script>
+description("This tests that the role attribute is not missed.");
+
+if (window.testRunner)
+ testRunner.dumpAsText();
+if (window.accessibilityController)
+ buildAccessibilityTree(accessibilityController.focusedElement, 0, 1);
+</script>
« no previous file with comments | « no previous file | LayoutTests/accessibility/role-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698