diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-13 21:07:32 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-13 21:07:32 +0000 |
| commit | 6554612c305bfd75116b00ed89d0f3b104b1a3ca (patch) | |
| tree | e428a0713d79c7fa53fcc9b8024031966ced560c /test/style-reader.tests.js | |
| parent | a50b0bf683fa87fc8927c66a9f0f2ccea3290067 (diff) | |
Read CSS classes with escaped colon
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"}) |
