Index: third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp b/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp |
index a45d5df5990ade15fd3dc5e594ac822ba3073252..dd09b2d847eaa0827211efe85ecc5b53f4b26d33 100644 |
--- a/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp |
@@ -152,7 +152,10 @@ TEST_F(FrameThrottlingTest, ThrottledLifecycleUpdate) |
frameElement->setAttribute(styleAttr, "transform: translateY(480px)"); |
compositeFrame(); |
EXPECT_TRUE(frameDocument->view()->canThrottleRendering()); |
- EXPECT_EQ(DocumentLifecycle::PaintInvalidationClean, frameDocument->lifecycle().state()); |
+ if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()) |
+ EXPECT_EQ(DocumentLifecycle::PaintClean, frameDocument->lifecycle().state()); |
+ else |
+ EXPECT_EQ(DocumentLifecycle::PaintInvalidationClean, frameDocument->lifecycle().state()); |
// Mutating the throttled frame followed by a beginFrame will not result in |
// a complete lifecycle update. |