aboutsummaryrefslogtreecommitdiff
path: root/test/style-reader.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-28 21:22:41 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-28 21:22:41 +0000
commit72ad04159683e8958ff957695fc9bb224fc376ca (patch)
tree9c122c874a5ad16dd50857fef2bc340295fc5729 /test/style-reader.tests.js
parenta12b966752ba7ae880f7d6348a42cc986e891a82 (diff)
Parse break style mappings
Diffstat (limited to 'test/style-reader.tests.js')
-rw-r--r--test/style-reader.tests.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/style-reader.tests.js b/test/style-reader.tests.js
index 6092bb9..96c0c39 100644
--- a/test/style-reader.tests.js
+++ b/test/style-reader.tests.js
@@ -164,6 +164,27 @@ test("styleReader.readDocumentMatcher", {
"comment-reference",
documentMatchers.commentReference
);
+ },
+
+ "reads line breaks": function() {
+ assertDocumentMatcher(
+ "br[type='line']",
+ documentMatchers.lineBreak
+ );
+ },
+
+ "reads page breaks": function() {
+ assertDocumentMatcher(
+ "br[type='page']",
+ documentMatchers.pageBreak
+ );
+ },
+
+ "reads column breaks": function() {
+ assertDocumentMatcher(
+ "br[type='column']",
+ documentMatchers.columnBreak
+ );
}
});