From 8d07fccc0787bb043125e2f8788e550c692a2579 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 13 Nov 2016 12:38:05 +0000 Subject: Read embedded style maps --- .../java/org/zwobble/mammoth/tests/MammothTests.java | 8 ++++++++ src/test/resources/test-data/embedded-style-map.docx | Bin 0 -> 49709 bytes 2 files changed, 8 insertions(+) create mode 100644 src/test/resources/test-data/embedded-style-map.docx (limited to 'src/test') diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java index fff4cb3..665e00a 100644 --- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java @@ -226,6 +226,14 @@ public class MammothTests { list("Unrecognised paragraph style: List Paragraph (Style ID: ListParagraph)"))); } + @Test + public void embeddedStyleMapIsUsedIfPresent() throws IOException { + assertThat( + convertToHtml("embedded-style-map.docx"), + isSuccess("

Walking on imported air

") + ); + } + @Test public void canExtractRawTextFromFile() throws IOException { assertThat( diff --git a/src/test/resources/test-data/embedded-style-map.docx b/src/test/resources/test-data/embedded-style-map.docx new file mode 100644 index 0000000..bb0a5e2 Binary files /dev/null and b/src/test/resources/test-data/embedded-style-map.docx differ -- cgit v1.2.3