Skip to content

Commit c52df47

Browse files
SnipxiText-CI
authored andcommitted
Add a new test demonstrating the problem of total number of pages being displayed incorrectly
DEVSIX-2999 Autoported commit. Original commit hash: [72a38598]
1 parent 34681a4 commit c52df47

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/css/CounterTest.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,13 @@ public virtual void PageCounter02Test() {
8383
public virtual void PageCounter03Test() {
8484
ConvertToPdfAndCompare("page_counter03", sourceFolder, destinationFolder);
8585
}
86+
87+
/// <exception cref="System.IO.IOException"/>
88+
/// <exception cref="System.Exception"/>
89+
[NUnit.Framework.Test]
90+
public virtual void PageCounter04Test() {
91+
// TODO cmp file to be fixed after DEVSIX-2999 is done
92+
ConvertToPdfAndCompare("page_counter04", sourceFolder, destinationFolder);
93+
}
8694
}
8795
}
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html><html>
2+
<head>
3+
<style>
4+
.x::before {
5+
content: counter(pages);
6+
}
7+
</style>
8+
</head>
9+
<body style="page-break-before: always">
10+
<div>Total number of pages: <span class="x"></span></div>
11+
</body>
12+
</html>

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3b56ebd9e2a448407302a31185a94aee5059d303
1+
72a38598ce9d8bb97619b90b62acec75f076e62a

0 commit comments

Comments
 (0)