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

Unified Diff: ash/root_window_controller_unittest.cc

Issue 1866113002: Fix Chrome OS Login status area layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update unit test. Created 4 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
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller_unittest.cc
diff --git a/ash/root_window_controller_unittest.cc b/ash/root_window_controller_unittest.cc
index d2f1d0b8fb894c27c5add28f81b328c69402bdb0..1c7332851133bd1bfe6e812723fda6a970ab6bae 100644
--- a/ash/root_window_controller_unittest.cc
+++ b/ash/root_window_controller_unittest.cc
@@ -666,17 +666,12 @@ typedef test::NoSessionAshTestBase NoSessionRootWindowControllerTest;
TEST_F(NoSessionRootWindowControllerTest, Event) {
aura::Window* root = Shell::GetPrimaryRootWindow();
const gfx::Size size = root->bounds().size();
- aura::Window* event_target = root->GetEventHandlerForPoint(gfx::Point(0, 0));
- EXPECT_TRUE(event_target);
- EXPECT_EQ(event_target,
- root->GetEventHandlerForPoint(gfx::Point(0, size.height() - 1)));
- EXPECT_EQ(event_target,
- root->GetEventHandlerForPoint(gfx::Point(size.width() - 1, 0)));
- EXPECT_EQ(event_target,
- root->GetEventHandlerForPoint(gfx::Point(0, size.height() - 1)));
- EXPECT_EQ(event_target,
- root->GetEventHandlerForPoint(
- gfx::Point(size.width() - 1, size.height() - 1)));
+ EXPECT_TRUE(root->GetEventHandlerForPoint(gfx::Point(0, 0)));
+ EXPECT_TRUE(root->GetEventHandlerForPoint(gfx::Point(0, size.height() - 1)));
+ EXPECT_TRUE(root->GetEventHandlerForPoint(gfx::Point(size.width() - 1, 0)));
+ EXPECT_TRUE(root->GetEventHandlerForPoint(gfx::Point(0, size.height() - 1)));
+ EXPECT_TRUE(root->GetEventHandlerForPoint(
+ gfx::Point(size.width() - 1, size.height() - 1)));
}
class VirtualKeyboardRootWindowControllerTest
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698