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

Unified Diff: ui/views/accessibility/native_view_accessibility_unittest.cc

Issue 2795543002: Add GetScreenBoundsRect to ui::AXPlatformNodeDelegate (Closed)
Patch Set: Add GetScreenBoundsRect() to ui::AXPlatformNodeDelegate 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: ui/views/accessibility/native_view_accessibility_unittest.cc
diff --git a/ui/views/accessibility/native_view_accessibility_unittest.cc b/ui/views/accessibility/native_view_accessibility_unittest.cc
index f57d7a217366ff3d457a95ded17d321c27374b05..0deb578dd92468ea2bfc457b50467a017cfc124a 100644
--- a/ui/views/accessibility/native_view_accessibility_unittest.cc
+++ b/ui/views/accessibility/native_view_accessibility_unittest.cc
@@ -93,8 +93,10 @@ TEST_F(NativeViewAccessibilityTest, RoleShouldMatch) {
TEST_F(NativeViewAccessibilityTest, BoundsShouldMatch) {
gfx::Rect bounds =
gfx::ToEnclosingRect(button_accessibility()->GetData().location);
- bounds.Offset(button_accessibility()->GetGlobalCoordinateOffset());
+ gfx::Rect screen_bounds = button_accessibility()->GetScreenBoundsRect();
+
EXPECT_EQ(button_->GetBoundsInScreen(), bounds);
+ EXPECT_EQ(screen_bounds, bounds);
}
TEST_F(NativeViewAccessibilityTest, LabelIsChildOfButton) {

Powered by Google App Engine
This is Rietveld 408576698