aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/document-xml-reader.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-02-09 20:37:31 +0000
committerMichael Williamson <mike@zwobble.org>2015-02-09 20:37:31 +0000
commita6233fafe736ff9abbdfe88f7f702ebd63ee4608 (patch)
tree90728de083981c0eafada8e0181bc5614e20859a /tests/docx/document-xml-reader.tests.js
parent4d4d9e669b389be294373cf3c9bd4727dd5f32af (diff)
Ignore _GoBack bookmarks at parse-time
Diffstat (limited to 'tests/docx/document-xml-reader.tests.js')
-rw-r--r--tests/docx/document-xml-reader.tests.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/docx/document-xml-reader.tests.js b/tests/docx/document-xml-reader.tests.js
index 35c806b..536f47b 100644
--- a/tests/docx/document-xml-reader.tests.js
+++ b/tests/docx/document-xml-reader.tests.js
@@ -225,6 +225,12 @@ describe("readXmlElement: ", function() {
assert.deepEqual(result.value.type, "bookmarkStart");
});
+ test('_GoBack bookmark is ignored', function() {
+ var bookmarkStart = new XmlElement("w:bookmarkStart", {"w:name": "_GoBack"});
+ var result = readXmlElement(bookmarkStart);
+ assert.deepEqual(result.value, []);
+ });
+
test("can read inline pictures", function() {
var drawing = createInlineImage({
relationshipId: "rId5",