aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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);