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

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

Issue 2846563002: Optimize collapsed border calculation (step 1) (Closed)
Patch Set: - Created 3 years, 8 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 | « third_party/WebKit/Source/core/layout/LayoutTableCell.cpp ('k') | 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/layout/LayoutTableCellTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCellTest.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCellTest.cpp
index b01ea27993c43b8fa7dd825378911a25de23de48..99b80a6cfbac67a2c5b8653f5a92aa66d06c054c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCellTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCellTest.cpp
@@ -85,6 +85,15 @@ class LayoutTableCellTest : public RenderingTest {
}
};
+TEST_F(LayoutTableCellTest, AbsoluteColumnIndex) {
+ auto* cell = LayoutTableCell::CreateAnonymous(&GetDocument());
+ EXPECT_FALSE(cell->HasSetAbsoluteColumnIndex());
+ cell->SetAbsoluteColumnIndex(kMaxColumnIndex);
+ EXPECT_TRUE(cell->HasSetAbsoluteColumnIndex());
+ EXPECT_NE(kUnsetColumnIndex, cell->AbsoluteColumnIndex());
+ EXPECT_EQ(kMaxColumnIndex, cell->AbsoluteColumnIndex());
+}
+
TEST_F(LayoutTableCellTest, ResetColspanIfTooBig) {
SetBodyInnerHTML("<table><td id='cell' colspan='14000'></td></table>");
ASSERT_EQ(GetCellByElementId("cell")->ColSpan(), 8190U);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698