Docx writer: Add tests for list continuation.

This commit is contained in:
Jesse Rosenthal 2017-12-13 15:14:23 -05:00
parent 3c7a3d378c
commit 440533643e
5 changed files with 23 additions and 0 deletions

View file

@ -205,6 +205,14 @@ tests = [ testGroup "inlines"
"lists"
"docx/lists.docx"
"docx/lists.native"
, testCompare
"lists continuing after interruption"
"docx/lists_continuing.docx"
"docx/lists_continuing.native"
, testCompare
"lists restarting after interruption"
"docx/lists_restarting.docx"
"docx/lists_restarting.native"
, testCompare
"definition lists"
"docx/definition_list.docx"

Binary file not shown.

View file

@ -0,0 +1,7 @@
[OrderedList (1,Decimal,Period)
[[Para [Str "Foo"]]
,[Para [Str "Bar"]]
,[Para [Str "Baz"]]]
,Para [Str "Interruption."]
,OrderedList (4,Decimal,Period)
[[Para [Str "Bop"]]]]

Binary file not shown.

View file

@ -0,0 +1,8 @@
[OrderedList (2,Decimal,Period)
[[Para [Str "Foo"]]
,[Para [Str "Bar"]]
,[Para [Str "Baz"]]]
,BlockQuote
[Para [Str "Interruption"]]
,OrderedList (1,Decimal,Period)
[[Para [Str "Bop."]]]]