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

Unified Diff: ui/aura/window_unittest.cc

Issue 309573004: aura: Reland r266681 to debug WindowObserver crashes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/aura/window_observer.cc ('K') | « ui/aura/window_observer.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 5e08a170da097f9d34b11acccb75a0bce6ed295e..add99d43483152bc8ca921e503649e9e6eb50bb0 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -2229,6 +2229,7 @@ TEST_F(WindowTest, RootWindowSetWhenReparenting) {
parent1.SetBounds(gfx::Rect(10, 10, 300, 300));
parent2.SetBounds(gfx::Rect(20, 20, 300, 300));
+ BoundsChangedWindowObserver observer;
Window child(NULL);
child.Init(aura::WINDOW_LAYER_NOT_DRAWN);
child.SetBounds(gfx::Rect(5, 5, 100, 100));
@@ -2242,7 +2243,6 @@ TEST_F(WindowTest, RootWindowSetWhenReparenting) {
gfx::Rect new_bounds(gfx::Rect(35, 35, 50, 50));
child.SetBounds(new_bounds);
- BoundsChangedWindowObserver observer;
child.AddObserver(&observer);
// Reparenting the |child| will cause it to get moved. During this move
« ui/aura/window_observer.cc ('K') | « ui/aura/window_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698