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

Unified Diff: ui/aura/window_unittest.cc

Issue 139463005: Makes Window::RecreateLayer() reset bounds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment Created 6 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
« no previous file with comments | « ui/aura/window.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_unittest.cc
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
index f8ee953d977f619d567fa9172dbd8f381f6a05cd..ba975931117a711ae2ddd6ddd90219a5cf7ee464 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -1971,6 +1971,10 @@ TEST_F(WindowTest, RecreateLayer) {
EXPECT_FALSE(layer->visible());
EXPECT_EQ(1u, layer->children().size());
EXPECT_TRUE(layer->GetMasksToBounds());
+ // On recreate it's expected the bounds of both the window and layer go to
+ // 0. See description of Window::RecreateLayer() for details.
+ EXPECT_EQ("0,0 0x0", w.bounds().ToString());
+ EXPECT_EQ("0,0 0x0", layer->bounds().ToString());
}
// Verify that RecreateLayer() stacks the old layer above the newly creatd
« no previous file with comments | « ui/aura/window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698