Skip to content

Commit 99ffe87

Browse files
tests: escaped characters
1 parent 9075cfc commit 99ffe87

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/simpleTest.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ describe("simple", function() {
1313
test("escaped selector", ".u-m\\+ { a: b c d; }", [
1414
[1, ".u-m\\+ { a: b c d; }", ""]
1515
]);
16+
test("escaped selector (2)", ".grid.\\-top { a: b c d; }", [
17+
[1, ".grid.\\-top { a: b c d; }", ""]
18+
]);
19+
test("escaped selector (3)", ".u-m\\00002b { a: b c d; }", [
20+
[1, ".u-m\\00002b { a: b c d; }", ""]
21+
]);
22+
test("escaped characters", '.class { content: \'"\\\\f10c"\'; }', [
23+
[1, '.class { content: \'"\\\\f10c"\'; }', ""]
24+
]);
25+
test("escaped characters (2)", '.class { font-family: \'微软雅黑\'; }', [
26+
[1, '.class { font-family: \'微软雅黑\'; }', ""]
27+
]);
28+
test("escaped characters (3)", '.class { content: \'\\e901\'; }', [
29+
[1, '.class { content: \'\\e901\'; }', ""]
30+
]);
1631
test("escaped characters (uppercase)", '.class { content: "\\F10C" }', [
1732
[1, '.class { content: "\\F10C" }', ""]
1833
]);

0 commit comments

Comments
 (0)