summaryrefslogtreecommitdiff
path: root/test/Tests/Writers
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2018-01-27 11:46:41 -0500
committerJesse Rosenthal <jrosenthal@jhu.edu>2018-01-27 11:46:41 -0500
commitebcd04f57a4693447a47891c4cf3654e023d4f13 (patch)
tree837a8830770accbad1a0f540a4d1bbd38782297d /test/Tests/Writers
parenta66bfd9071a73436dbd8be41eea00d9a50dc81ae (diff)
Docx writer tests: Add tests for custom styles
Diffstat (limited to 'test/Tests/Writers')
-rw-r--r--test/Tests/Writers/Docx.hs10
1 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"
+ ]
]