diff options
Diffstat (limited to 'test/style-reader.tests.js')
| -rw-r--r-- | test/style-reader.tests.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/style-reader.tests.js b/test/style-reader.tests.js index ec17e3a..46c2ace 100644 --- a/test/style-reader.tests.js +++ b/test/style-reader.tests.js @@ -40,6 +40,13 @@ test('styleReader.readHtmlPath', { assertHtmlPath("p.tip", expected); }, + 'reads class with escaped colon': function() { + var expected = htmlPaths.elements([ + htmlPaths.element("p", {"class": "a:b"}) + ]); + assertHtmlPath("p.a\\:b", expected); + }, + 'reads multiple classes on element': function() { var expected = htmlPaths.elements([ htmlPaths.element("p", {"class": "tip help"}) |
