From 1ae8ec5852c9ad94f1773d0014da2bb18887ce9e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 4 Nov 2017 11:06:59 +0000 Subject: Parse style mappings for tables --- test/style-reader.tests.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/style-reader.tests.js b/test/style-reader.tests.js index 20d4127..dc8cb3f 100644 --- a/test/style-reader.tests.js +++ b/test/style-reader.tests.js @@ -165,7 +165,29 @@ test("styleReader.readDocumentMatcher", { documentMatchers.smallCaps ); }, - + + "reads plain table": function() { + assertDocumentMatcher("table", documentMatchers.table()); + }, + + "reads table with style ID": function() { + assertDocumentMatcher( + "table.TableNormal", + documentMatchers.table({ + styleId: "TableNormal" + }) + ); + }, + + "reads table with style name": function() { + assertDocumentMatcher( + "table[style-name='Normal Table']", + documentMatchers.table({ + styleName: documentMatchers.equalTo("Normal Table") + }) + ); + }, + "reads comment-reference": function() { assertDocumentMatcher( "comment-reference", -- cgit v1.2.3