| Index: components/mus/public/cpp/tests/window_unittest.cc
|
| diff --git a/components/mus/public/cpp/tests/window_unittest.cc b/components/mus/public/cpp/tests/window_unittest.cc
|
| index 09172c677cbf759532b53c958be197cccd604e05..b2283512004584b46d84a774b09e805ba914b8a4 100644
|
| --- a/components/mus/public/cpp/tests/window_unittest.cc
|
| +++ b/components/mus/public/cpp/tests/window_unittest.cc
|
| @@ -1132,4 +1132,14 @@ TEST_F(WindowTest, StackUponCreation) {
|
| EXPECT_EQ("1 3 2", ChildWindowIDsAsString(parent.get()));
|
| }
|
|
|
| +// Tests that a window does not have capture until it is explicitly set.
|
| +TEST_F(WindowTest, SetCapture) {
|
| + TestWindow w;
|
| + ASSERT_FALSE(w.has_capture());
|
| + w.SetCapture();
|
| + EXPECT_TRUE(w.has_capture());
|
| + w.ReleaseCapture();
|
| + EXPECT_FALSE(w.has_capture());
|
| +}
|
| +
|
| } // namespace mus
|
|
|