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

Unified Diff: LayoutTests/accessibility/aria-scrollbar-role.html

Issue 723123002: Default orientation for aria scrollbars should be vertical (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/aria-scrollbar-role-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/aria-scrollbar-role.html
diff --git a/LayoutTests/accessibility/aria-scrollbar-role.html b/LayoutTests/accessibility/aria-scrollbar-role.html
index e9f1c7de605f76c66409ff076816d38162bd99f3..a231093c0877653bf91f2e95b3e8bfa20282f617 100644
--- a/LayoutTests/accessibility/aria-scrollbar-role.html
+++ b/LayoutTests/accessibility/aria-scrollbar-role.html
@@ -5,8 +5,8 @@
</head>
<body id="body">
-<div tabindex=0 id="scroller" aria-valuenow="55" role="scrollbar" aria-orientation="vertical">scrollbar</div>
-
+<div tabindex=0 id="scroller1" aria-valuenow="55" role="scrollbar" aria-orientation="vertical">scrollbar</div>
+<div tabindex=0 id="scroller2" aria-valuenow="55" role="scrollbar">scrollbar</div>
<p id="description"></p>
<div id="console"></div>
@@ -17,14 +17,22 @@
if (window.accessibilityController) {
- document.getElementById("scroller").focus();
+ document.getElementById("scroller1").focus();
var scroller = accessibilityController.focusedElement;
shouldBe("scroller.role", "'AXRole: AXScrollBar'");
shouldBe("scroller.intValue", "55");
shouldBe("scroller.orientation", "'AXOrientation: AXVerticalOrientation'");
- document.getElementById("scroller").setAttribute("aria-orientation", "horizontal");
+ document.getElementById("scroller1").setAttribute("aria-orientation", "horizontal");
shouldBe("scroller.orientation", "'AXOrientation: AXHorizontalOrientation'");
+
+ // Default orientation should be vertical for scrollbars
+ document.getElementById("scroller2").focus();
+ scroller = accessibilityController.focusedElement;
+ shouldBe("scroller.role", "'AXRole: AXScrollBar'");
+ shouldBe("scroller.intValue", "55");
+ shouldBe("scroller.orientation", "'AXOrientation: AXVerticalOrientation'");
+
}
</script>
« no previous file with comments | « no previous file | LayoutTests/accessibility/aria-scrollbar-role-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698