Skip to content

Commit 1231c30

Browse files
committed
Add some new border radius tests. Update cmps.
DEVSIX-1911
1 parent a66e42b commit 1231c30

23 files changed

+506
-8
lines changed

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,35 +121,41 @@ public void borderRadius12Test() throws IOException, InterruptedException {
121121
convertToPdfAndCompare("borderRadiusTest12", sourceFolder, destinationFolder);
122122
}
123123

124+
@Test
125+
public void borderRadius12ATest() throws IOException, InterruptedException {
126+
convertToPdfAndCompare("borderRadiusTest12A", sourceFolder, destinationFolder);
127+
}
128+
124129
@Test
125130
public void borderRadius13Test() throws IOException, InterruptedException {
126131
convertToPdfAndCompare("borderRadiusTest13", sourceFolder, destinationFolder);
127132
}
128133

129134
@Test
130-
// TODO DEVSIX-1911
131135
public void borderRadius14Test() throws IOException, InterruptedException {
132136
convertToPdfAndCompare("borderRadiusTest14", sourceFolder, destinationFolder);
133137
}
134138

135139
@Test
136-
// TODO DEVSIX-1911
137140
public void borderRadius15Test() throws IOException, InterruptedException {
138141
convertToPdfAndCompare("borderRadiusTest15", sourceFolder, destinationFolder);
139142
}
140143

141144
@Test
142-
// TODO DEVSIX-1911
143145
public void borderRadius16Test() throws IOException, InterruptedException {
144146
convertToPdfAndCompare("borderRadiusTest16", sourceFolder, destinationFolder);
145147
}
146148

147149
@Test
148-
// TODO DEVSIX-1911
149150
public void borderRadius17Test() throws IOException, InterruptedException {
150151
convertToPdfAndCompare("borderRadiusTest17", sourceFolder, destinationFolder);
151152
}
152153

154+
@Test
155+
public void borderRadius18Test() throws IOException, InterruptedException {
156+
convertToPdfAndCompare("borderRadiusTest18", sourceFolder, destinationFolder);
157+
}
158+
153159
@Test
154160
public void borderRadiusInlineElementTest01() throws IOException, InterruptedException {
155161
// TODO DEVSIX-1935

src/test/resources/com/itextpdf/html2pdf/css/BorderRadiusTest/borderRadiusTest12A.html

Lines changed: 435 additions & 0 deletions
Large diffs are not rendered by default.

src/test/resources/com/itextpdf/html2pdf/css/BorderRadiusTest/borderRadiusTest14.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44

55
<div style="border:6px dashed rgba(197,22,22,1);border-radius:50px">
66
<input type="text">
7-
</div>
7+
</div>
8+
9+
<div style="border:6px solid rgba(197,22,22,1);border-radius:50px">
10+
<input type="text">
11+
</div>
12+
13+
<div style="border:6px dotted rgba(197,22,22,1);border-radius:50px">
14+
<input type="text">
15+
</div>
816

917
</body>
1018
</html>

src/test/resources/com/itextpdf/html2pdf/css/BorderRadiusTest/borderRadiusTest15.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44

55
<div style="border:13px dashed rgba(9,69,134,1);border-radius:50px">
66
<p>Text</p>
7-
</div>
7+
</div>
8+
9+
<div style="border:13px solid rgba(9,69,134,1);border-radius:50px">
10+
<p>Text</p>
11+
</div>
12+
13+
<div style="border:13px dotted rgba(9,69,134,1);border-radius:50px">
14+
<p>Text</p>
15+
</div>
816

917
</body>
1018
</html>

src/test/resources/com/itextpdf/html2pdf/css/BorderRadiusTest/borderRadiusTest16.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<html>
33
<body>
44

5-
<div style="border:6px dashed;border-radius:60px"></div>
5+
<div style="border:6px dashed;border-radius:60px"></div>
6+
<div style="border:6px solid;border-radius:60px"></div>
7+
<div style="border:6px dotted;border-radius:60px"></div>
68

79
</body>
810
</html>

src/test/resources/com/itextpdf/html2pdf/css/BorderRadiusTest/borderRadiusTest17.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@
66
<div >
77
<p>Text</p>
88
</div>
9-
</div>
9+
</div>
10+
11+
<div style="border:6px solid;border-radius:60px">
12+
<div >
13+
<p>Text</p>
14+
</div>
15+
</div>
16+
17+
<div style="border:6px dotted;border-radius:60px">
18+
<div >
19+
<p>Text</p>
20+
</div>
21+
</div>
1022

1123
</body>
1224
</html>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<html>
2+
<body>
3+
4+
<div style="border:10pt dashed black ;border-top-left-radius:50pt; border-top-color: blue; border-left-color: green; height: 55pt; width: 500pt;">
5+
</div>
6+
<div style="border:10pt dashed black ;border-top-right-radius:50pt; border-right-color: blue; border-top-color: green; height: 500pt; width: 55pt;">
7+
</div>
8+
<br>
9+
<br>
10+
<br>
11+
<br>
12+
<br>
13+
<br>
14+
<br>
15+
<br>
16+
<br>
17+
<br>
18+
<br>
19+
<br>
20+
21+
<div style="border:10pt dashed black ;border-bottom-right-radius:50pt; border-bottom-color: blue; border-right-color: green; height: 55pt; width: 500pt;">
22+
</div>
23+
<div style="border:10pt dashed black ;border-bottom-left-radius:50pt; border-left-color: blue; border-bottom-color: green; height: 500pt; width: 55pt;">
24+
</div>
25+
26+
</body>
27+
</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)