From 2e819654db985bf8a7e7ed76e0a43dc2f46eec8d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 23 Jan 2017 20:37:05 +0000 Subject: Handle base-relative target URIs --- src/test/java/org/zwobble/mammoth/tests/MammothTests.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/test/java/org/zwobble/mammoth/tests/MammothTests.java') diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java index d7a2b66..ac81c76 100644 --- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java @@ -69,12 +69,19 @@ public class MammothTests { } @Test - public void inlineImagesAreIncludedInOutput() throws IOException { + public void inlineImagesReferencedByPathRelativeToPartAreIncludedInOutput() throws IOException { assertThat( convertToHtml("tiny-picture.docx"), isSuccess("

")); } + @Test + public void inlineImagesReferencedByPathRelativeToBaseAreIncludedInOutput() throws IOException { + assertThat( + convertToHtml("tiny-picture-target-base-relative.docx"), + isSuccess("

")); + } + @Test public void imagesStoredOutsideOfDocumentAreIncludedInOutput() throws IOException { Path tempDirectory = Files.createTempDirectory("mammoth-"); -- cgit v1.2.3