From 443ad6fcbef7734e8b91d8082a0583ce2165c446 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 14 Nov 2016 20:59:40 +0000 Subject: Allow escape sequences in separator --- test/style-reader.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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); -- cgit v1.2.3