git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: Add test cases for dummy list items.
commit186a955bd03e001201ece26442bdf25203714c14 authorJesse Rosenthal <jrosenthal@jhu.edu> dateWed 18 Nov 2015, 13:15 (11 years ago) parent5527465
5 files changed+14
tests/Tests/Readers/Docx.hs+8 tests/docx/dummy_item_after_list_item.docx tests/docx/dummy_item_after_list_item.native+3 tests/docx/dummy_item_after_paragraph.docx tests/docx/dummy_item_after_paragraph.native+3
tests/Tests/Readers/Docx.hs+8
@@ -184,6 +184,14 @@ tests = [ testGroup "inlines"
184184 "custom defined lists in styles"
185185 "docx/german_styled_lists.docx"
186186 "docx/german_styled_lists.native"
187+ , testCompare
188+ "user deletes bullet after list item (=> part of item par)"
189+ "docx/dummy_item_after_list_item.docx"
190+ "docx/dummy_item_after_list_item.native"
191+ , testCompare
192+ "user deletes bullet after par (=> new par)"
193+ "docx/dummy_item_after_paragraph.docx"
194+ "docx/dummy_item_after_paragraph.native"
187195 , testCompare
188196 "footnotes and endnotes"
189197 "docx/notes.docx"
tests/docx/dummy_item_after_list_item.docxnew file

Binary file not shown.

tests/docx/dummy_item_after_list_item.nativenew file+3
@@ -0,0 +1,3 @@
1+[OrderedList (1,Decimal,Period)
2+ [[Para [Str "One"]
3+ ,Para [Str "Two",LineBreak,LineBreak,Str "Three"]]]]
tests/docx/dummy_item_after_paragraph.docxnew file

Binary file not shown.

tests/docx/dummy_item_after_paragraph.nativenew file+3
@@ -0,0 +1,3 @@
1+[Para [Str "First",Space,Str "bullet",Space,Str "point",Space,Str "created",Space,Str "and",Space,Str "then",Space,Str "deleted"]
2+,Para [Str "A",Space,Str "normal",Space,Str "paragraph"]
3+,Para [Str "First",Space,Str "bullet",Space,Str "point",Space,Str "created",Space,Str "and",Space,Str "then",Space,Str "deleted",Space,Str "after",Space,Str "the",Space,Str "normal",Space,Str "paragraph"]]