Index: components/exo/shell_surface_unittest.cc |
diff --git a/components/exo/shell_surface_unittest.cc b/components/exo/shell_surface_unittest.cc |
index 483ecc8d768b16014cde2ad48e79201b374c40c9..a373edd856fafa30f841eb0bdbda527ad20ef4b0 100644 |
--- a/components/exo/shell_surface_unittest.cc |
+++ b/components/exo/shell_surface_unittest.cc |
@@ -599,6 +599,9 @@ TEST_F(ShellSurfaceTest, ShadowStartMaximized) { |
surface->Commit(); |
EXPECT_FALSE(wm::ShadowController::GetShadowForWindow(window)); |
+ // Underlay should be created even without shadow. |
+ ASSERT_TRUE(shell_surface->shadow_underlay_for_test()); |
+ EXPECT_TRUE(shell_surface->shadow_underlay_for_test()->IsVisible()); |
// Restore the window and make sure the shadow is created, visible and |
// has the latest bounds. |