| Index: components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc
|
| diff --git a/components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc b/components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc
|
| index 3e1b707609642909f2835b4e16712825b6e582a2..f15e3da40d3f05a7c12a5456e2bb1e770f3e14e3 100644
|
| --- a/components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc
|
| +++ b/components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc
|
| @@ -338,6 +338,20 @@ TEST_F(WindowTreeClientImplTest, SetVisibleFailedWithPendingChange) {
|
| EXPECT_EQ(original_visible, root->visible());
|
| }
|
|
|
| +// Verifies |is_modal| is reverted if the server replied that the change failed.
|
| +TEST_F(WindowTreeClientImplTest, SetModalFailed) {
|
| + WindowTreeSetup setup;
|
| + Window* root = setup.GetFirstRoot();
|
| + ASSERT_TRUE(root);
|
| + EXPECT_FALSE(root->is_modal());
|
| + root->SetModal();
|
| + uint32_t change_id;
|
| + ASSERT_TRUE(setup.window_tree()->GetAndClearChangeId(&change_id));
|
| + EXPECT_TRUE(root->is_modal());
|
| + setup.window_tree_client()->OnChangeCompleted(change_id, false);
|
| + EXPECT_FALSE(root->is_modal());
|
| +}
|
| +
|
| TEST_F(WindowTreeClientImplTest, InputEventBasic) {
|
| WindowTreeSetup setup;
|
| Window* root = setup.GetFirstRoot();
|
|
|