From 9545703e5e3cd3f0cbce363eda1d2c92e4eb0da0 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 30 May 2017 11:32:40 +0100 Subject: Convert hyperlink target frame to anchor target --- test/document-to-html.tests.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') diff --git a/test/document-to-html.tests.js b/test/document-to-html.tests.js index a55f9a2..bf6631f 100644 --- a/test/document-to-html.tests.js +++ b/test/document-to-html.tests.js @@ -343,6 +343,17 @@ test('docx hyperlink with anchor is converted to ', function() { }); }); +test('hyperlink target frame is used as anchor target', function() { + var hyperlink = new documents.Hyperlink( + [runOfText("Hello.")], + {anchor: "start", targetFrame: "_blank"} + ); + var converter = new DocumentConverter(); + return converter.convertToHtml(hyperlink).then(function(result) { + assert.equal(result.value, 'Hello.'); + }); +}); + test('bookmarks are converted to anchors', function() { var bookmarkStart = new documents.BookmarkStart({name: "_Peter"}); var converter = new DocumentConverter({ -- cgit v1.2.3