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

Unified Diff: ui/keyboard/keyboard_controller_unittest.cc

Issue 2620273002: Change the keyboard bounds when moving to another display. (Closed)
Patch Set: Fix a test failure Created 3 years, 11 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
« ui/keyboard/keyboard_controller.cc ('K') | « ui/keyboard/keyboard_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_controller_unittest.cc
diff --git a/ui/keyboard/keyboard_controller_unittest.cc b/ui/keyboard/keyboard_controller_unittest.cc
index c2b47f3cb5f35a59aa2ea5b94a90539fdaa06fe5..4cf8cdba5a3a1da3fdfd6087600ee765fb911a7d 100644
--- a/ui/keyboard/keyboard_controller_unittest.cc
+++ b/ui/keyboard/keyboard_controller_unittest.cc
@@ -299,7 +299,8 @@ TEST_F(KeyboardControllerTest, KeyboardSize) {
const gfx::Rect& initial_bounds = container->bounds();
// The container should be positioned at the bottom of screen and has 0
// height.
- ASSERT_EQ(gfx::Rect(), initial_bounds);
+ ASSERT_EQ(0, initial_bounds.height());
+ ASSERT_EQ(screen_bounds.height(), initial_bounds.y());
VerifyKeyboardWindowSize(container, keyboard);
// In FULL_WIDTH mode, attempt to change window width or move window up from
« ui/keyboard/keyboard_controller.cc ('K') | « ui/keyboard/keyboard_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698