aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/custom-style-roundtrip-start.native
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-08-15 15:33:06 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2016-08-15 15:33:06 -0400
commitd416f6241079a8d596fd071ed3dc20c4a60a6069 (patch)
tree3dfa4ffecc3c163db6882bd2a16a0777bada6e96 /tests/docx/custom-style-roundtrip-start.native
parent663f689fa40458d680d44624c108c3009b8329ca (diff)
downloadpandoc-d416f6241079a8d596fd071ed3dc20c4a60a6069.tar.gz
Docx writer: test for custom styles.
This just tests whether a custom style with a recognizable style (italic etc, defined in a reference.docx) will roundtrip back to that format (i.e., whether `<span custom-style="Emphasized">` will roundtrip to `Emph`). The custom styles are defined in the `custom-style-reference.docx` included in the docx dir.
Diffstat (limited to 'tests/docx/custom-style-roundtrip-start.native')
-rw-r--r--tests/docx/custom-style-roundtrip-start.native5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/docx/custom-style-roundtrip-start.native b/tests/docx/custom-style-roundtrip-start.native
new file mode 100644
index 000000000..c4566ed85
--- /dev/null
+++ b/tests/docx/custom-style-roundtrip-start.native
@@ -0,0 +1,5 @@
+[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "test",Space,Str "of",Space,Str "custom-styles."]
+,Para [Str "Here",Space,Str "is",Space,Str "something",Space,Span ("",[],[("custom-style","Emphatic")]) [Str "emphasized"],Str ".",Space,Str "And",SoftBreak,Str "here",Space,Str "is",Space,Str "something",Space,Span ("",[],[("custom-style","Strengthened")]) [Str "strong"],Str "."]
+,Div ("",[],[("custom-style","My Block Style")])
+ [Para [Str "One",Space,Str "paragraph",Space,Str "of",Space,Str "text."]
+ ,Para [Str "And",Space,Str "another",Space,Str "paragraph",Space,Str "of",Space,Span ("",[],[("custom-style","Emphatic")]) [Str "really",SoftBreak,Str "cool"],Space,Str "text."]]]