Skip to content

Commit 9a754ae

Browse files
Kate IvanovaiText-CI
authored andcommitted
Replace Bootstrap337Test.typography
DEVSIX-6144
1 parent 8eeaf82 commit 9a754ae

File tree

4 files changed

+53
-1
lines changed

4 files changed

+53
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,9 @@ public void unsupportedType() {
101101
Assert.assertThrows(NullPointerException.class,
102102
() -> convertToPdfAndCompare("unsupportedType", SOURCE_FOLDER, DESTINATION_FOLDER));
103103
}
104+
105+
@Test
106+
public void horizontalDescriptionListTest() throws IOException, InterruptedException {
107+
convertToPdfAndCompare("horizontalDescriptionList", SOURCE_FOLDER, DESTINATION_FOLDER);
108+
}
104109
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<style>
4+
* {
5+
box-sizing: border-box;
6+
}
7+
dl {
8+
margin-top: 0;
9+
margin-bottom: 20px;
10+
}
11+
.dl-horizontal dt {
12+
float: left;
13+
width: 160px;
14+
overflow: hidden;
15+
clear: left;
16+
text-align: right;
17+
text-overflow: ellipsis;
18+
white-space: nowrap;
19+
}
20+
dt {
21+
line-height: 1.42857143;
22+
font-weight: 700;
23+
}
24+
.dl-horizontal dd {
25+
margin-left: 180px;
26+
}
27+
dd {
28+
line-height: 1.42857143;
29+
}
30+
31+
</style>
32+
<body>
33+
<p>Horizontal descriptions</p>
34+
<dl class="dl-horizontal">
35+
<dt>Description lists</dt>
36+
<dd>A description list is perfect for defining terms.</dd>
37+
<dt>iText</dt>
38+
<dd>Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum.</dd>
39+
<dd>Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum.</dd>
40+
<dt>iText</dt>
41+
<dd>Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum.</dd>
42+
<dt>Hello, iText! Hello!</dt>
43+
<dd>Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum.
44+
</dd>
45+
</dl>
46+
</body>
47+
</html>

src/test/resources/com/itextpdf/html2pdf/css/TextPropertiesTest/textTransformTest01.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1>Text Transform</h1>
1212

1313
<div style="text-transform:capitalize">
1414
<h1>Text Transform</h1>
15-
This.example <span>demonstrates</span> dif<span>fer<span>ent text-transforms.
15+
This.example <span>demonstrates</span> dif<span>fer</span>ent text-transforms.
1616
</div>
1717

1818
<div style="text-transform:uppercase">

0 commit comments

Comments
 (0)