Skip to content

Commit 8d1e478

Browse files
vitali-priText-CI
authored andcommitted
Add tests for fixed empty rows elimination logic
DEVSIX-6095 Autoported commit. Original commit hash: [dcc8edcdd]
1 parent a03807d commit 8d1e478

File tree

7 files changed

+853
-4
lines changed

7 files changed

+853
-4
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/element/TableTest.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ public virtual void CellWithRowspanShouldBeConsideredWhileCalculatingColumnWidth
522522

523523
[NUnit.Framework.Test]
524524
public virtual void EmptyTrRowspanBorderCollapsingTest() {
525-
// TODO DEVSIX-5290 change cmp after the correction
526525
RunTest("emptyTrRowspanBorderCollapsing");
527526
}
528527

@@ -533,8 +532,6 @@ public virtual void EmptyTdTest() {
533532
}
534533

535534
[NUnit.Framework.Test]
536-
[LogMessage(iText.IO.Logs.IoLogMessageConstant.UNEXPECTED_BEHAVIOUR_DURING_TABLE_ROW_COLLAPSING, Count = 2
537-
)]
538535
public virtual void EmptyTrTest() {
539536
RunTest("emptyTr");
540537
}
@@ -598,6 +595,18 @@ public virtual void InlineWithInlineBlockAsTdChildWrappedTest() {
598595
RunTest("inlineWithInlineBlockAsTdChildWrapped");
599596
}
600597

598+
[NUnit.Framework.Test]
599+
[LogMessage(iText.IO.Logs.IoLogMessageConstant.LAST_ROW_IS_NOT_COMPLETE, Count = 2)]
600+
public virtual void EmptyRowEliminationTest1() {
601+
RunTest("emptyRowElimination1");
602+
}
603+
604+
[NUnit.Framework.Test]
605+
[LogMessage(iText.IO.Logs.IoLogMessageConstant.LAST_ROW_IS_NOT_COMPLETE)]
606+
public virtual void EmptyRowEliminationTest2() {
607+
RunTest("emptyRowElimination2");
608+
}
609+
601610
private void RunTest(String testName) {
602611
RunTest(testName, false);
603612
}

0 commit comments

Comments
 (0)