Skip to content

Commit e4d6d57

Browse files
committed
Add a test for the crash while drawing input field with placeholder
DEVSIX-7737
1 parent 19c9293 commit e4d6d57

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ public void simpleTextFieldTest() throws IOException, InterruptedException {
6262
runTest("simpleTextField");
6363
}
6464

65+
@Test
66+
public void textFieldWithPlaceholderTest() throws IOException, InterruptedException {
67+
runTest("textFieldWithPlaceholder");
68+
}
69+
6570
@Test
6671
public void splitTextFieldTest() throws IOException, InterruptedException {
6772
runTest("splitTextField");
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body style="font-size:10px">
4+
<div>
5+
<label>Label</label>
6+
<input type="text" placeholder="test">
7+
</div>
8+
</body>
9+
</html>

0 commit comments

Comments
 (0)