From 9ebea403e3fa6e502e369917bddf4ef6c46ef961 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 1 Apr 2017 16:18:36 +0100 Subject: Add test case from java-mammoth --- Mammoth.Tests/DocumentConverterTests.cs | 9 ++++++++- .../TestData/tiny-picture-target-base-relative.docx | Bin 0 -> 10881 bytes 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Mammoth.Tests/TestData/tiny-picture-target-base-relative.docx diff --git a/Mammoth.Tests/DocumentConverterTests.cs b/Mammoth.Tests/DocumentConverterTests.cs index 0f4a336..ab0f63e 100644 --- a/Mammoth.Tests/DocumentConverterTests.cs +++ b/Mammoth.Tests/DocumentConverterTests.cs @@ -54,12 +54,19 @@ namespace Mammoth.Tests { } [Fact] - public void InlineImagesAreIncludedInOutput() { + public void InlineImagesReferencedByPathRelativeToPartAreIncludedInOutput() { AssertSuccessfulConversion( ConvertToHtml("tiny-picture.docx"), "

"); } + [Fact] + public void InlineImagesReferencedByPathRelativeToBaseAreIncludedInOutput() { + AssertSuccessfulConversion( + ConvertToHtml("tiny-picture-target-base-relative.docx"), + "

"); + } + [Fact] public void ImagesStoredOutsideOfDocumentAreIncludedInOutput() { AssertSuccessfulConversion( diff --git a/Mammoth.Tests/TestData/tiny-picture-target-base-relative.docx b/Mammoth.Tests/TestData/tiny-picture-target-base-relative.docx new file mode 100644 index 0000000..1d61988 Binary files /dev/null and b/Mammoth.Tests/TestData/tiny-picture-target-base-relative.docx differ -- cgit v1.2.3