aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/style-reader.tests.js24
1 files changed, 23 insertions, 1 deletions
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",