Skip to content

Commit 9568334

Browse files
pkjuakiText-CI
authored andcommitted
Add support to li value property of ordered list ol
DEVSIX-2455 Autoported commit. Original commit hash: [a3ec3c14]
1 parent 06fc7cf commit 9568334

File tree

15 files changed

+158
-4
lines changed

15 files changed

+158
-4
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/element/ListTest.cs

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,43 @@ public virtual void ListTest19() {
201201
/// <exception cref="System.IO.IOException"/>
202202
/// <exception cref="System.Exception"/>
203203
[NUnit.Framework.Test]
204-
[LogMessage(iText.StyledXmlParser.LogMessageConstant.ERROR_RESOLVING_PARENT_STYLES, Count = 3)]
205-
public virtual void ListTest20() {
206-
RunTest("listTest20");
204+
public virtual void ListLiValuePropertyTest() {
205+
RunTest("listLiValuePropertyTest");
206+
}
207+
208+
/// <exception cref="System.IO.IOException"/>
209+
/// <exception cref="System.Exception"/>
210+
[NUnit.Framework.Test]
211+
public virtual void ListStartPropertyTest() {
212+
RunTest("listStartPropertyTest");
213+
}
214+
215+
/// <exception cref="System.IO.IOException"/>
216+
/// <exception cref="System.Exception"/>
217+
[NUnit.Framework.Test]
218+
public virtual void ListItemValueTest() {
219+
RunTest("listItemValueTest");
220+
}
221+
222+
/// <exception cref="System.IO.IOException"/>
223+
/// <exception cref="System.Exception"/>
224+
[NUnit.Framework.Test]
225+
public virtual void ListItemValueTest01() {
226+
RunTest("listItemValueTest01");
227+
}
228+
229+
/// <exception cref="System.IO.IOException"/>
230+
/// <exception cref="System.Exception"/>
231+
[NUnit.Framework.Test]
232+
public virtual void ListItemValueTest02() {
233+
RunTest("listItemValueTest02");
234+
}
235+
236+
/// <exception cref="System.IO.IOException"/>
237+
/// <exception cref="System.Exception"/>
238+
[NUnit.Framework.Test]
239+
public virtual void DescendingListTest() {
240+
RunTest("descendingListTest");
207241
}
208242

209243
/// <exception cref="System.IO.IOException"/>
Binary file not shown.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<html>
2+
<body>
3+
<ol start=5>
4+
<li value="6">
5+
This is the 6th question
6+
</li>
7+
<li value="5">
8+
This is the 5th question
9+
</li>
10+
<li value=4>
11+
This is the 4th question
12+
</li>
13+
<li value="3">
14+
This is the 3rd question
15+
</li>
16+
<li value=2>
17+
This is the 2nd question
18+
</li>
19+
<li value="1">
20+
This is the 1st question
21+
</li>
22+
<li value="0">
23+
This is the 0 question
24+
</li>
25+
</ol>
26+
</body>
27+
</html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<html>
2+
<body>
3+
<ol start=5>
4+
<li value=3>
5+
This is the 3rd question
6+
</li>
7+
<li>
8+
This is the 4th question
9+
</li>
10+
</ol>
11+
</body>
12+
</html>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<html>
2+
<body>
3+
<ol start=5>
4+
<li value="3">
5+
This is the 3rd question
6+
</li>
7+
<li>
8+
This is the 4th question
9+
</li>
10+
<li value=6>
11+
This is the 6th question
12+
</li>
13+
<li>
14+
This is the 7th question
15+
</li>
16+
<li value=1>
17+
This is the 1st question
18+
</li>
19+
<li>
20+
This is the 2nd question
21+
</li>
22+
</ol>
23+
</body>
24+
</html>

0 commit comments

Comments
 (0)