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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp

Issue 1662483002: Introduce RenderingTest::getLayoutObjectByElementId(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThreadTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp
index cf049e5359e8ecb72cea0f27e9c19ffa156920b6..7cd0444cd59d411ee9600c52525e0528d03e0233 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp
@@ -19,10 +19,9 @@ TEST_F(LayoutBoxTest, BackgroundObscuredInRect)
setBodyInnerHTML("<style>.column { width: 295.4px; padding-left: 10.4px; } .white-background { background: red; position: relative; overflow: hidden; border-radius: 1px; }"
".black-background { height: 100px; background: black; color: white; } </style>"
"<div class='column'> <div> <div id='target' class='white-background'> <div class='black-background'></div> </div> </div> </div>");
- Element* element = document().getElementById("target");
- ASSERT_TRUE(element);
- ASSERT_TRUE(element->layoutObject());
- ASSERT_TRUE(element->layoutObject()->boxDecorationBackgroundIsKnownToBeObscured());
+ LayoutObject* layoutObject = getLayoutObjectByElementId("target");
+ ASSERT_TRUE(layoutObject);
+ ASSERT_TRUE(layoutObject->boxDecorationBackgroundIsKnownToBeObscured());
}
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThreadTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698