| Index: ui/views/controls/native/native_view_host_aura_unittest.cc
|
| diff --git a/ui/views/controls/native/native_view_host_aura_unittest.cc b/ui/views/controls/native/native_view_host_aura_unittest.cc
|
| index 40b5ce771a621b7ecb8b51d3e6ef7c7b9a5a7861..4169273259e8fa5cfac0639ca4461dbb6e95e848 100644
|
| --- a/ui/views/controls/native/native_view_host_aura_unittest.cc
|
| +++ b/ui/views/controls/native/native_view_host_aura_unittest.cc
|
| @@ -269,7 +269,7 @@ TEST_F(NativeViewHostAuraTest, ParentAfterDetach) {
|
|
|
| DestroyHost();
|
| DestroyTopLevel();
|
| - if (!IsMus()) {
|
| + if (!IsMus() && !IsAuraMusClient()) {
|
| // The window is detached, so no longer associated with any Widget
|
| // hierarchy. The root window still owns it, but the test harness checks
|
| // for orphaned windows during TearDown().
|
| @@ -277,9 +277,9 @@ TEST_F(NativeViewHostAuraTest, ParentAfterDetach) {
|
| << (*test_observer.events().begin()).type;
|
| delete child_win;
|
| } else {
|
| - // In mus, the child window is still attached to the aura::WindowTreeHost
|
| - // for the Widget. So destroying the toplevel Widget takes down the child
|
| - // window with it.
|
| + // In mus and aura-mus, the child window is still attached to the
|
| + // aura::WindowTreeHost for the Widget. So destroying the toplevel Widget
|
| + // takes down the child window with it.
|
| }
|
|
|
| ASSERT_EQ(1u, test_observer.events().size());
|
|
|