aboutsummaryrefslogtreecommitdiff
path: root/test/style-reader.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-14 20:59:40 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-14 20:59:40 +0000
commit443ad6fcbef7734e8b91d8082a0583ce2165c446 (patch)
tree7cf652ce42b9f5c93967d8d87a7766c2a0a3b7bc /test/style-reader.tests.js
parentacc7639ea2f58df6059ab00dc3c9620460a03083 (diff)
Allow escape sequences in separator
Diffstat (limited to 'test/style-reader.tests.js')
-rw-r--r--test/style-reader.tests.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/style-reader.tests.js b/test/style-reader.tests.js
index b4363f0..3fb5f1f 100644
--- a/test/style-reader.tests.js
+++ b/test/style-reader.tests.js
@@ -67,6 +67,13 @@ test('styleReader.readHtmlPath', {
]);
assertHtmlPath("p:separator('x')", expected);
},
+
+ 'reads separator with escape sequence': function() {
+ var expected = htmlPaths.elements([
+ htmlPaths.element("p", {}, {separator: "\r\n\t\'\\"})
+ ]);
+ assertHtmlPath("p:separator('\\r\\n\\t\\'\\\\')", expected);
+ },
'reads ignore element': function() {
assertHtmlPath("!", htmlPaths.ignore);