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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc

Issue 2732383002: Revert of Correctly update the popup window position (patchset #6 id:160001 of https://codereview.c… (Closed)
Patch Set: Created 3 years, 9 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 | « ui/aura/window.cc ('k') | ui/views/widget/desktop_aura/desktop_screen_position_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
index e6c204135359292ed313bc1dbf6010444d72767c..d2f0e65e321ad5efa02ad74c90804886e2768f6b 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
@@ -614,25 +614,6 @@ TEST_F(WidgetTest, WindowMouseModalityTest) {
top_level_widget.CloseNow();
}
-TEST_F(WidgetTest, SetScreenBoundsOnNativeWindow) {
- Widget widget;
- Widget::InitParams params = CreateParams(Widget::InitParams::TYPE_WINDOW);
- params.native_widget =
- CreatePlatformDesktopNativeWidgetImpl(params, &widget, nullptr);
- params.ownership = Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
- params.bounds = gfx::Rect(10, 10, 100, 100);
- widget.Init(params);
- widget.Show();
- aura::Window* window = widget.GetNativeWindow();
- display::Screen* screen = display::Screen::GetScreen();
-
- const gfx::Rect new_screen_bounds(50, 50, 150, 150);
- window->SetBoundsInScreen(new_screen_bounds,
- screen->GetPrimaryDisplay());
- EXPECT_EQ(new_screen_bounds, widget.GetWindowBoundsInScreen());
- widget.CloseNow();
-}
-
#if defined(OS_WIN)
// Tests whether we can activate the top level widget when a modal dialog is
// active.
« no previous file with comments | « ui/aura/window.cc ('k') | ui/views/widget/desktop_aura/desktop_screen_position_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698