summaryrefslogtreecommitdiff
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
parenta66bfd9071a73436dbd8be41eea00d9a50dc81ae (diff)
Docx writer tests: Add tests for custom styles
-rw-r--r--test/Tests/Writers/Docx.hs10
-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.docxbin0 -> 9724 bytes
-rw-r--r--test/docx/golden/custom_style_reference.docxbin0 -> 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
new file mode 100644
index 000000000..78f56893c
--- /dev/null
+++ b/test/docx/golden/custom_style_no_reference.docx
Binary files differ
diff --git a/test/docx/golden/custom_style_reference.docx b/test/docx/golden/custom_style_reference.docx
new file mode 100644
index 000000000..dfc2c960b
--- /dev/null
+++ b/test/docx/golden/custom_style_reference.docx
Binary files differ