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

Unified Diff: content/test/data/accessibility/aom/aom-selected.html

Issue 2796223003: Boolean attributes for Accessibility Object Model Phase 1 (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/test/data/accessibility/aom/aom-selected.html
diff --git a/content/test/data/accessibility/aom/aom-selected.html b/content/test/data/accessibility/aom/aom-selected.html
new file mode 100644
index 0000000000000000000000000000000000000000..3350be6ca0ffe22da988231a4a9bf754e0bc2b11
--- /dev/null
+++ b/content/test/data/accessibility/aom/aom-selected.html
@@ -0,0 +1,18 @@
+<!--
+@MAC-ALLOW:AXSubrole*
+@MAC-ALLOW:AXSelected*
+@WIN-ALLOW:SELECTED
+@BLINK-ALLOW:selected*
+-->
+<html>
+<body>
+<div role="listbox">
+ <div tabIndex="-1" id="selectedtrue" aria-label="1" role="option">Item 1</div>
+ <div tabIndex="-1" id="selectedfalse" aria-label="2" role="option">Item 2</div>
+</div>
+<script>
+ document.getElementById("selectedtrue").accessibleNode.selected = true;
+ document.getElementById("selectedfalse").accessibleNode.selected = false;
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698