| Index: ui/aura/mus/window_tree_client_unittest.cc
|
| diff --git a/ui/aura/mus/window_tree_client_unittest.cc b/ui/aura/mus/window_tree_client_unittest.cc
|
| index 2f8b467f1f09c6b9a237080ed6fb75126312294e..be5bae444d14ecb1ca2115d8626bdb0250cc7e09 100644
|
| --- a/ui/aura/mus/window_tree_client_unittest.cc
|
| +++ b/ui/aura/mus/window_tree_client_unittest.cc
|
| @@ -2405,4 +2405,18 @@ TEST_F(WindowTreeClientClientTestHighDPI, InputEventsInDip) {
|
| window_delegate1.last_event_location());
|
| }
|
|
|
| +using WindowTreeClientDestructionTest = test::AuraTestBaseMus;
|
| +
|
| +TEST_F(WindowTreeClientDestructionTest, Shutdown) {
|
| + // Windows should be able to outlive the WindowTreeClient.
|
| + aura::Window window(nullptr);
|
| + window.Init(ui::LAYER_NOT_DRAWN);
|
| + DeleteWindowTreeClient();
|
| +
|
| + // And it should be possible to create Windows after the WindowTreeClient has
|
| + // been deleted.
|
| + aura::Window window2(nullptr);
|
| + window2.Init(ui::LAYER_NOT_DRAWN);
|
| +}
|
| +
|
| } // namespace aura
|
|
|