aboutsummaryrefslogtreecommitdiff
path: root/test/style-reader.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-13 21:07:32 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-13 21:07:32 +0000
commit6554612c305bfd75116b00ed89d0f3b104b1a3ca (patch)
treee428a0713d79c7fa53fcc9b8024031966ced560c /test/style-reader.tests.js
parenta50b0bf683fa87fc8927c66a9f0f2ccea3290067 (diff)
Read CSS classes with escaped colon
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 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"})