Skip to content

Commit c079562

Browse files
committed
Test disabled property for checkbox
DEVSIX-7078
1 parent d2cfd16 commit c079562

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-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
@@ -355,6 +355,11 @@ public void textFieldAlignmentTest() throws IOException, InterruptedException {
355355
runTest("textFieldAlignment");
356356
}
357357

358+
@Test
359+
public void checkBoxDisabledTest() throws IOException, InterruptedException {
360+
runTest("checkBoxDisabled");
361+
}
362+
358363
private void runTest(String name) throws IOException, InterruptedException {
359364
runTest(name, true);
360365
}
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>
9+
<input type="checkbox" disabled checked>
10+
<label>Label</label>
11+
</div>
12+
</body></html>
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)