diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2018-01-27 11:46:41 -0500 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2018-01-27 11:46:41 -0500 |
commit | ebcd04f57a4693447a47891c4cf3654e023d4f13 (patch) | |
tree | 837a8830770accbad1a0f540a4d1bbd38782297d | |
parent | a66bfd9071a73436dbd8be41eea00d9a50dc81ae (diff) | |
download | pandoc-ebcd04f57a4693447a47891c4cf3654e023d4f13.tar.gz |
Docx writer tests: Add tests for custom styles
-rw-r--r-- | test/Tests/Writers/Docx.hs | 10 | ||||
-rw-r--r-- | test/docx/custom_style.native (renamed from test/docx/custom-style-roundtrip-start.native) | 0 | ||||
-rw-r--r-- | test/docx/golden/custom_style_no_reference.docx | bin | 0 -> 9724 bytes | |||
-rw-r--r-- | test/docx/golden/custom_style_reference.docx | bin | 0 -> 12118 bytes |
4 files changed, 10 insertions, 0 deletions
diff --git a/test/Tests/Writers/Docx.hs b/test/Tests/Writers/Docx.hs index 57e55e354..c9bc42de4 100644 --- a/test/Tests/Writers/Docx.hs +++ b/test/Tests/Writers/Docx.hs @@ -144,4 +144,14 @@ tests = [ testGroup "inlines" "docx/comments.native" "docx/golden/comments.docx" ] + , testGroup "custom styles" + [ docxTest "custom styles without reference.docx" + def + "docx/custom_style.native" + "docx/golden/custom_style_no_reference.docx" + , docxTest "custom styles without reference.docx" + def{writerReferenceDoc = Just "docx/custom-style-reference.docx"} + "docx/custom_style.native" + "docx/golden/custom_style_reference.docx" + ] ] diff --git a/test/docx/custom-style-roundtrip-start.native b/test/docx/custom_style.native index c4566ed85..c4566ed85 100644 --- a/test/docx/custom-style-roundtrip-start.native +++ b/test/docx/custom_style.native diff --git a/test/docx/golden/custom_style_no_reference.docx b/test/docx/golden/custom_style_no_reference.docx Binary files differnew file mode 100644 index 000000000..78f56893c --- /dev/null +++ b/test/docx/golden/custom_style_no_reference.docx diff --git a/test/docx/golden/custom_style_reference.docx b/test/docx/golden/custom_style_reference.docx Binary files differnew file mode 100644 index 000000000..dfc2c960b --- /dev/null +++ b/test/docx/golden/custom_style_reference.docx |