From d416f6241079a8d596fd071ed3dc20c4a60a6069 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Mon, 15 Aug 2016 15:33:06 -0400 Subject: 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 `` will roundtrip to `Emph`). The custom styles are defined in the `custom-style-reference.docx` included in the docx dir. --- tests/docx/custom-style-roundtrip-start.native | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/docx/custom-style-roundtrip-start.native (limited to 'tests/docx/custom-style-roundtrip-start.native') 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."]]] -- cgit v1.2.3