diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-05-30 11:05:18 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-05-30 11:05:18 +0100 |
| commit | a9661689a03cdaf3590250a0bd7887f07aeafa7e (patch) | |
| tree | 57f33c9506abd51eb5867a373ae011e2d7e1c206 /test | |
| parent | 9cc065c434b00b10ba234afa952fedf7e20a59af (diff) | |
Read target frame on hyperlinks
Diffstat (limited to 'test')
| -rw-r--r-- | test/docx/body-reader.tests.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js index 1eb229f..f866e9b 100644 --- a/test/docx/body-reader.tests.js +++ b/test/docx/body-reader.tests.js @@ -945,7 +945,16 @@ test("w:hyperlink", { var hyperlinkXml = new XmlElement("w:hyperlink", {}, [runXml]); var result = readXmlElement(hyperlinkXml); assert.deepEqual(result.value[0].type, "run"); - } + }, + + "target frame is read": function() { + var hyperlinkXml = new XmlElement("w:hyperlink", { + "w:anchor": "Introduction", + "w:tgtFrame": "_blank" + }); + var result = readXmlElementValue(hyperlinkXml); + assertThat(result, hasProperties({targetFrame: "_blank"})); + }, }); test("w:br without explicit type is read as line break", function() { |
