Skip to content

Commit d7e6ba8

Browse files
achifaliText-CI
authored andcommitted
Test letter-spacing and word-spacing for text fields
DEVSIX-7076 Autoported commit. Original commit hash: [79258a95b]
1 parent 1b17002 commit d7e6ba8

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
@@ -313,6 +313,16 @@ public virtual void TextFieldStrikethroughTest() {
313313
RunTest("textFieldStrikethrough");
314314
}
315315

316+
[NUnit.Framework.Test]
317+
public virtual void TextFieldLetterSpacingTest() {
318+
RunTest("textFieldLetterSpacing");
319+
}
320+
321+
[NUnit.Framework.Test]
322+
public virtual void TextFieldWordSpacingTest() {
323+
RunTest("textFieldWordSpacing");
324+
}
325+
316326
private void RunTest(String name) {
317327
RunTest(name, true);
318328
}
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="letter-spacing:30px">
9+
<label>Label Label</label>
10+
<input type="text" style="letter-spacing:30px" value="text 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="word-spacing:30px">
9+
<label>Label Label</label>
10+
<input type="text" style="word-spacing:30px" value="text 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-
8be6ccfdb4ed6ed9eb1f5a7aa5b3dc347f6381bf
1+
79258a95b3ebab88eb094bbc3137b98d3a5bb62e

0 commit comments

Comments
 (0)