Skip to content

Commit f9d1aa2

Browse files
ars18wrwitext-teamcity
authored andcommitted
Add new ignored test
DEVSIX-1320 Autoported commit. Original commit hash: [e3aa7a2]
1 parent bdf6716 commit f9d1aa2

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

itext.tests/itext.layout.tests/itext/layout/TableBorderTest.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,34 @@ public virtual void TableWithHeaderFooterTest16() {
12741274
, testName + "_diff"));
12751275
}
12761276

1277+
/// <exception cref="System.IO.IOException"/>
1278+
/// <exception cref="System.Exception"/>
1279+
[NUnit.Framework.Ignore("DEVSIX-1320")]
1280+
[NUnit.Framework.Test]
1281+
public virtual void TableWithHeaderFooterTest17() {
1282+
String testName = "tableWithHeaderFooterTest17.pdf";
1283+
String outFileName = destinationFolder + testName;
1284+
String cmpFileName = sourceFolder + "cmp_" + testName;
1285+
PdfDocument pdfDoc = new PdfDocument(new PdfWriter(outFileName));
1286+
Document doc = new Document(pdfDoc);
1287+
String textByron = "When a man hath no freedom to fight for at home,\n" + " Let him combat for that of his neighbours;\n"
1288+
+ "Let him think of the glories of Greece and of Rome,\n" + " And get knocked on the head for his labours.\n"
1289+
+ "\n" + "To do good to Mankind is the chivalrous plan,\n" + " And is always as nobly requited;\n"
1290+
+ "Then battle for Freedom wherever you can,\n" + " And, if not shot or hanged, you'll get knighted.";
1291+
Table table = new Table(2);
1292+
table.SetKeepTogether(true);
1293+
int bigRowspan = 5;
1294+
table.AddCell(new Cell(bigRowspan, 1).Add("Big cell").SetBorder(new SolidBorder(Color.GREEN, 20)));
1295+
for (int i = 0; i < bigRowspan; i++) {
1296+
table.AddCell(i + " " + textByron);
1297+
}
1298+
doc.Add(new Paragraph("Try to break me!"));
1299+
doc.Add(table);
1300+
doc.Close();
1301+
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
1302+
, testName + "_diff"));
1303+
}
1304+
12771305
/// <exception cref="System.IO.IOException"/>
12781306
/// <exception cref="System.Exception"/>
12791307
[NUnit.Framework.Test]

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2762266b3de461c006adca4072c1af562d23a81d
1+
e3aa7a26a3905b9c0238d37763f2cb7205181272

0 commit comments

Comments
 (0)