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> |