Index: components/mus/ws/window_manager_client_apptest.cc |
diff --git a/components/mus/ws/window_manager_client_apptest.cc b/components/mus/ws/window_manager_client_apptest.cc |
index 205fd92eada1510c7fe3ddea5c61b3a237376a56..5dd41d1c1a023547d85b67aa7e4666a14c4ca785 100644 |
--- a/components/mus/ws/window_manager_client_apptest.cc |
+++ b/components/mus/ws/window_manager_client_apptest.cc |
@@ -811,15 +811,13 @@ TEST_F(WindowServerTest, ActivationNext) { |
Window* child31 = NewVisibleWindow(embedded3->GetRoot(), embedded3); |
WaitForTreeSizeToMatch(parent, 7); |
- Window* expecteds[] = { child1, child2, child3, child1, nullptr }; |
- Window* focused[] = { child11, child21, child31, child11, nullptr }; |
+ Window* expecteds[] = { child3, child2, child1, child3, nullptr }; |
+ Window* focused[] = { child31, child21, child11, child31, nullptr }; |
for (size_t index = 0; expecteds[index]; ++index) { |
host()->ActivateNextWindow(); |
- ASSERT_TRUE(WaitForOrderChange(window_manager(), expecteds[index])) |
- << " Failure at " << index; |
- |
WaitForWindowToHaveFocus(focused[index]); |
EXPECT_TRUE(focused[index]->HasFocus()); |
+ EXPECT_EQ(parent->children().back(), expecteds[index]); |
} |
} |