diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/docx/body-reader.tests.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js index 21ed961..878d279 100644 --- a/test/docx/body-reader.tests.js +++ b/test/docx/body-reader.tests.js @@ -469,6 +469,19 @@ test("can read inline pictures", function() { })))); }); +test("alt text title is used if alt text description is missing", function() { + var drawing = createInlineImage({ + blip: createEmbeddedBlip(IMAGE_RELATIONSHIP_ID), + title: "It's a hat" + }); + + var result = readEmbeddedImage(drawing); + + return promiseThat(result, isSuccess(contains(isImage({ + altText: "It's a hat" + })))); +}); + test("alt text title is used if alt text description is blank", function() { var drawing = createInlineImage({ blip: createEmbeddedBlip(IMAGE_RELATIONSHIP_ID), |
