Skip to content

Commit fca6500

Browse files
committed
Add new tests for border radius with dashed borders
DEVSIX-1911
1 parent bc38a15 commit fca6500

File tree

9 files changed

+69
-0
lines changed

9 files changed

+69
-0
lines changed

src/test/java/com/itextpdf/html2pdf/css/BorderRadiusTest.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,33 @@ public void borderRadius13Test() throws IOException, InterruptedException {
142142
HtmlConverter.convertToPdf(new File(sourceFolder + "borderRadiusTest13.html"), new File(destinationFolder + "borderRadiusTest13.pdf"));
143143
Assert.assertNull(new CompareTool().compareByContent(destinationFolder + "borderRadiusTest13.pdf", sourceFolder + "cmp_borderRadiusTest13.pdf", destinationFolder, "diff13_"));
144144
}
145+
146+
@Test
147+
// TODO DEVSIX-1911
148+
public void borderRadius14Test() throws IOException, InterruptedException {
149+
HtmlConverter.convertToPdf(new File(sourceFolder + "borderRadiusTest14.html"), new File(destinationFolder + "borderRadiusTest14.pdf"));
150+
Assert.assertNull(new CompareTool().compareByContent(destinationFolder + "borderRadiusTest14.pdf", sourceFolder + "cmp_borderRadiusTest14.pdf", destinationFolder, "diff14_"));
151+
}
152+
153+
@Test
154+
// TODO DEVSIX-1911
155+
public void borderRadius15Test() throws IOException, InterruptedException {
156+
HtmlConverter.convertToPdf(new File(sourceFolder + "borderRadiusTest15.html"), new File(destinationFolder + "borderRadiusTest15.pdf"));
157+
Assert.assertNull(new CompareTool().compareByContent(destinationFolder + "borderRadiusTest15.pdf", sourceFolder + "cmp_borderRadiusTest15.pdf", destinationFolder, "diff15_"));
158+
}
159+
160+
@Test
161+
// TODO DEVSIX-1911
162+
public void borderRadius16Test() throws IOException, InterruptedException {
163+
HtmlConverter.convertToPdf(new File(sourceFolder + "borderRadiusTest16.html"), new File(destinationFolder + "borderRadiusTest16.pdf"));
164+
Assert.assertNull(new CompareTool().compareByContent(destinationFolder + "borderRadiusTest16.pdf", sourceFolder + "cmp_borderRadiusTest16.pdf", destinationFolder, "diff16_"));
165+
}
166+
167+
@Test
168+
// TODO DEVSIX-1911
169+
public void borderRadius17Test() throws IOException, InterruptedException {
170+
HtmlConverter.convertToPdf(new File(sourceFolder + "borderRadiusTest17.html"), new File(destinationFolder + "borderRadiusTest17.pdf"));
171+
Assert.assertNull(new CompareTool().compareByContent(destinationFolder + "borderRadiusTest17.pdf", sourceFolder + "cmp_borderRadiusTest17.pdf", destinationFolder, "diff17_"));
172+
}
173+
145174
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
5+
<div style="border:6px dashed rgba(197,22,22,1);border-radius:50px">
6+
<input type="text">
7+
</div>
8+
9+
</body>
10+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
5+
<div style="border:13px dashed rgba(9,69,134,1);border-radius:50px">
6+
<p>Text</p>
7+
</div>
8+
9+
</body>
10+
</html>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
5+
<div style="border:6px dashed;border-radius:60px"></div>
6+
7+
</body>
8+
</html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
5+
<div style="border:6px dashed;border-radius:60px">
6+
<div >
7+
<p>Text</p>
8+
</div>
9+
</div>
10+
11+
</body>
12+
</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)