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

Unified Diff: third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp

Issue 2587073004: RootLayerScrolling: Fix TableCellPainterTest (Closed)
Patch Set: Created 4 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp b/third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp
index 1cd5830d4d7221e763c2ff1216c00aca7a140836..085cf1aacff08ba356f0ba6c68b87bc6b6187007 100644
--- a/third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp
+++ b/third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp
@@ -49,7 +49,7 @@ TEST_F(TableCellPainterTest, BackgroundWithCellSpacing) {
setBodyInnerHTML(
"<style>"
" body { margin: 0; }"
- " td { width: 200px; height: 200px; border: 0; background-color: green; "
+ " td { width: 200px; height: 150px; border: 0; background-color: green; "
"}"
" tr { background-color: blue; }"
" table { border: none; border-spacing: 100px; border-collapse: "
@@ -67,7 +67,7 @@ TEST_F(TableCellPainterTest, BackgroundWithCellSpacing) {
rootPaintController().invalidateAll();
document().view()->updateAllLifecyclePhasesExceptPaint();
// Intersects cell1 and the spacing between cell1 and cell2.
- IntRect interestRect(0, 200, 200, 200);
+ IntRect interestRect(0, 200, 200, 150);
paint(&interestRect);
EXPECT_DISPLAY_LIST(
@@ -78,7 +78,7 @@ TEST_F(TableCellPainterTest, BackgroundWithCellSpacing) {
document().view()->updateAllLifecyclePhasesExceptPaint();
// Intersects the spacing only.
- interestRect = IntRect(0, 300, 100, 100);
+ interestRect = IntRect(0, 250, 100, 100);
paint(&interestRect);
EXPECT_DISPLAY_LIST(
@@ -87,7 +87,7 @@ TEST_F(TableCellPainterTest, BackgroundWithCellSpacing) {
document().view()->updateAllLifecyclePhasesExceptPaint();
// Intersects cell2 only.
- interestRect = IntRect(0, 400, 200, 200);
+ interestRect = IntRect(0, 350, 200, 150);
paint(&interestRect);
EXPECT_DISPLAY_LIST(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698