diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-19 20:17:38 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-19 20:17:38 +0000 |
| commit | 1c320474b93de8c90bf903f6a748e83a9aa65706 (patch) | |
| tree | 24f3b1f235cbfa65680798bafd5e044f0503bb20 /src/test/java | |
| parent | cf51080fc233196a5bf6c40c06e1a4ec32e85d5b (diff) | |
Allow embedded style maps to be disabled
Diffstat (limited to 'src/test/java')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/MammothTests.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java index bafd857..d7a2b66 100644 --- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java @@ -252,6 +252,14 @@ public class MammothTests { } @Test + public void embeddedStyleMapsCanBeDisabled() throws IOException { + assertThat( + convertToHtml("embedded-style-map.docx", options -> options.disableEmbeddedStyleMap()), + isSuccess("<p>Walking on imported air</p>") + ); + } + + @Test public void embeddedStyleMapCanBeWrittenAndThenRead() throws IOException { InMemoryArchive archive = InMemoryArchive.fromStream(new FileInputStream(TestData.file("single-paragraph.docx"))); EmbeddedStyleMap.embedStyleMap(archive, "p => h1"); |
