From 72ad04159683e8958ff957695fc9bb224fc376ca Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 28 Nov 2016 21:22:41 +0000 Subject: Parse break style mappings --- test/style-reader.tests.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test') 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 + ); } }); -- cgit v1.2.3