diff options
| author | Michael Williamson <mike@zwobble.org> | 2021-11-01 19:08:28 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2021-11-01 19:08:28 +0000 |
| commit | e7803837d2a0214bc144f640bf3e2482c19ac35f (patch) | |
| tree | 034021c807fdbfb87b7445ebe787bc01a510ec17 /test/docx | |
| parent | 47f27abda77e15faec56cd8e215d3156a36aca1d (diff) | |
Handle a:blip elements without image file
Diffstat (limited to 'test/docx')
| -rw-r--r-- | test/docx/body-reader.tests.js | 12 |
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"), |
