summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-04-01 16:21:41 +0100
committerMichael Williamson <mike@zwobble.org>2017-04-01 16:24:20 +0100
commit45897f5b0a254b56e0f3edde771cbfe14cc173bb (patch)
tree170c0d9349b48dda9b30996a51abf0b2c45c4baf
parent9ebea403e3fa6e502e369917bddf4ef6c46ef961 (diff)
Add test case for embedded style map
-rw-r--r--Mammoth.Tests/DocumentConverterTests.cs8
-rw-r--r--Mammoth.Tests/TestData/embedded-style-map.docxbin0 -> 49709 bytes
2 files changed, 8 insertions, 0 deletions
diff --git a/Mammoth.Tests/DocumentConverterTests.cs b/Mammoth.Tests/DocumentConverterTests.cs
index ab0f63e..1d4da54 100644
--- a/Mammoth.Tests/DocumentConverterTests.cs
+++ b/Mammoth.Tests/DocumentConverterTests.cs
@@ -183,6 +183,14 @@ namespace Mammoth.Tests {
}
[Fact]
+ public void EmbeddedStyleMapIsUsedIfPresent() {
+ AssertSuccessfulConversion(
+ ConvertToHtml("embedded-style-map.docx"),
+ "<h1>Walking on imported air</h1>"
+ );
+ }
+
+ [Fact]
public void CanExtractRawTextFromFile() {
AssertSuccessfulConversion(
new DocumentConverter().ExtractRawText(TestFilePath("simple-list.docx")),
diff --git a/Mammoth.Tests/TestData/embedded-style-map.docx b/Mammoth.Tests/TestData/embedded-style-map.docx
new file mode 100644
index 0000000..bb0a5e2
--- /dev/null
+++ b/Mammoth.Tests/TestData/embedded-style-map.docx
Binary files differ