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); |