Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinderTest.cpp

Issue 2733633002: Handle nested position:sticky elements correctly (compositor) (Closed)
Patch Set: Revert float changes to unittests too Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinderTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinderTest.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinderTest.cpp
index ce5ddb73319dffff4ac917288477a1df61a414b2..2bd494decfda4c01ef7d4887b77edf117c14051a 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinderTest.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinderTest.cpp
@@ -271,7 +271,7 @@ TEST_F(CompositingReasonFinderTest, RequiresCompositingForEffectAnimation) {
CompositingReasonFinder::requiresCompositingForEffectAnimation(*style));
}
-TEST_F(CompositingReasonFinderTest, DoNotCompositeNestedSticky) {
+TEST_F(CompositingReasonFinderTest, CompositeNestedSticky) {
ScopedCompositeFixedPositionForTest compositeFixedPosition(true);
setBodyInnerHTML(
@@ -300,7 +300,7 @@ TEST_F(CompositingReasonFinderTest, DoNotCompositeNestedSticky) {
ASSERT_TRUE(innerStickyLayer);
EXPECT_EQ(PaintsIntoOwnBacking, outerStickyLayer->compositingState());
- EXPECT_EQ(NotComposited, innerStickyLayer->compositingState());
+ EXPECT_EQ(PaintsIntoOwnBacking, innerStickyLayer->compositingState());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698