aboutsummaryrefslogtreecommitdiff
path: root/tests/document-xml-reader.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-10-20 23:44:51 +0100
committerMichael Williamson <mike@zwobble.org>2013-10-20 23:44:51 +0100
commite873d918cd3b3fa2744c49db438e972901378a1b (patch)
tree1ae6a708e5aff54b14a0a88410af6f701f74ecae /tests/document-xml-reader.tests.js
parentf1f833367bb0f52d8895fa72da06daa700f574e2 (diff)
Add support for reading w:tab elements
Diffstat (limited to 'tests/document-xml-reader.tests.js')
-rw-r--r--tests/document-xml-reader.tests.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/document-xml-reader.tests.js b/tests/document-xml-reader.tests.js
index e05e8a8..f2872a3 100644
--- a/tests/document-xml-reader.tests.js
+++ b/tests/document-xml-reader.tests.js
@@ -107,6 +107,12 @@ describe("readXmlElement: ", function() {
assert.deepEqual(result.value.children, []);
});
+ test("w:tab is read as document tab element", function() {
+ var tabXml = new XmlElement("w:tab");
+ var result = readXmlElement(tabXml);
+ assert.deepEqual(result.value, new documents.Tab());
+ });
+
test("emits warning on unrecognised element", function() {
var unrecognisedElement = new XmlElement("w:not-an-element");
var result = readXmlElement(unrecognisedElement);