diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/docx/body-reader.tests.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js index 878d279..62178ec 100644 --- a/test/docx/body-reader.tests.js +++ b/test/docx/body-reader.tests.js @@ -454,6 +454,15 @@ test("can read imagedata elements with r:id attribute", function() { }))); }); +test("when v:imagedata element has no relationship ID then it is ignored with warning", function() { + var imagedataElement = new XmlElement("v:imagedata"); + + var result = readXmlElement(imagedataElement); + + assert.deepEqual(result.value, []); + assert.deepEqual(result.messages, [warning("A v:imagedata element without a relationship ID was ignored")]); +}); + test("can read inline pictures", function() { var drawing = createInlineImage({ blip: createEmbeddedBlip(IMAGE_RELATIONSHIP_ID), |
