summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/docx/body-reader.tests.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js
index c539aad..2e53200 100644
--- a/test/docx/body-reader.tests.js
+++ b/test/docx/body-reader.tests.js
@@ -1087,6 +1087,18 @@ test("can read linked pictures", function() {
}));
});
+test("warning if blip has no image file", function() {
+ var drawing = createInlineImage({
+ blip: new XmlElement("a:blip"),
+ description: "It's a hat"
+ });
+
+ var result = readXmlElement(drawing);
+
+ assert.deepEqual(result.messages, [warning("Could not find image file for a:blip element")]);
+ assert.deepEqual(result.value, []);
+});
+
test("warning if unsupported image type", function() {
var drawing = createInlineImage({
blip: createEmbeddedBlip("rId5"),