Index: ash/wm/system_modal_container_layout_manager_unittest.cc |
diff --git a/ash/wm/system_modal_container_layout_manager_unittest.cc b/ash/wm/system_modal_container_layout_manager_unittest.cc |
index 04198ea84a4799a9afeb211d7faa72f5544eed40..e3be65dcfa95abf5b5dc554cd00f02aec516ad8c 100644 |
--- a/ash/wm/system_modal_container_layout_manager_unittest.cc |
+++ b/ash/wm/system_modal_container_layout_manager_unittest.cc |
@@ -168,10 +168,8 @@ TEST_F(SystemModalContainerLayoutManagerTest, ModalTransient) { |
// Tests that we can activate an unrelated window after a modal window is closed |
// for a window. |
-// TODO(beng): This test is disabled pending a solution re: visibility & target |
-// visibility. |
TEST_F(SystemModalContainerLayoutManagerTest, |
- DISABLED_CanActivateAfterEndModalSession) { |
+ CanActivateAfterEndModalSession) { |
scoped_ptr<aura::Window> unrelated(TestWindow::OpenTestWindow(NULL, false)); |
unrelated->SetBounds(gfx::Rect(100, 100, 50, 50)); |
scoped_ptr<aura::Window> parent(TestWindow::OpenTestWindow(NULL, false)); |
@@ -191,6 +189,8 @@ TEST_F(SystemModalContainerLayoutManagerTest, |
// Now close the transient. |
transient.reset(); |
+ MessageLoopForUI::current()->RunAllPending(); |
+ |
// parent should now be active again. |
EXPECT_TRUE(IsActiveWindow(parent.get())); |