Skip to content

Commit 8be6ccf

Browse files
committed
Test underline and line-through text decorations for text fields
DEVSIX-7074
1 parent 0d4964a commit 8be6ccf

File tree

9 files changed

+35
-1
lines changed

9 files changed

+35
-1
lines changed

src/test/java/com/itextpdf/html2pdf/element/FormTest.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ This file is part of the iText (R) project.
4747
import org.junit.jupiter.api.Assertions;
4848
import org.junit.jupiter.api.BeforeAll;
4949
import org.junit.jupiter.api.Disabled;
50-
import org.junit.jupiter.api.Test;
5150
import org.junit.jupiter.api.Tag;
51+
import org.junit.jupiter.api.Test;
5252

5353
@Tag("IntegrationTest")
5454
public class FormTest extends ExtendedITextTest {
@@ -330,6 +330,16 @@ public void checkLogInfoDefault() throws IOException {
330330
}
331331
}
332332

333+
@Test
334+
public void textFieldUnderlineTest() throws IOException, InterruptedException {
335+
runTest("textFieldUnderline");
336+
}
337+
338+
@Test
339+
public void textFieldStrikethroughTest() throws IOException, InterruptedException {
340+
runTest("textFieldStrikethrough");
341+
}
342+
333343
private void runTest(String name) throws IOException, InterruptedException {
334344
runTest(name, true);
335345
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
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>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
</head>
6+
7+
<body>
8+
<div style="text-decoration:line-through">
9+
<label data-dito-element="rich-text">Label</label>
10+
<input type="text" style="text-decoration:line-through" value="text">
11+
</div>
12+
</body></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+
<head>
4+
<meta charset="UTF-8">
5+
</head>
6+
7+
<body>
8+
<div style="text-decoration:underline">
9+
<label data-dito-element="rich-text">Label</label>
10+
<input type="text" style="text-decoration:underline" value="text">
11+
</div>
12+
</body></html>

0 commit comments

Comments
 (0)