Skip to content

Commit 1b17002

Browse files
achifaliText-CI
authored andcommitted
Test underline and line-through text decorations for text fields
DEVSIX-7074 Autoported commit. Original commit hash: [8be6ccfdb]
1 parent 6a06a18 commit 1b17002

File tree

10 files changed

+35
-1
lines changed

10 files changed

+35
-1
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/element/FormTest.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,16 @@ public virtual void CheckLogInfoDefault() {
303303
}
304304
}
305305

306+
[NUnit.Framework.Test]
307+
public virtual void TextFieldUnderlineTest() {
308+
RunTest("textFieldUnderline");
309+
}
310+
311+
[NUnit.Framework.Test]
312+
public virtual void TextFieldStrikethroughTest() {
313+
RunTest("textFieldStrikethrough");
314+
}
315+
306316
private void RunTest(String name) {
307317
RunTest(name, true);
308318
}
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>

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0d4964af691835ece880b4a1ed6430fbc10c4fd8
1+
8be6ccfdb4ed6ed9eb1f5a7aa5b3dc347f6381bf

0 commit comments

Comments
 (0)