1 Test window.CSS.escape()
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS CSS.escape('\0') threw exception InvalidCharacterError: Failed to execute 'escape' on 'CSS': The string contains an invalid character..
7 PASS CSS.escape('a\0') threw exception InvalidCharacterError: Failed to execute 'escape' on 'CSS': The string contains an invalid character..
8 PASS CSS.escape('\0b') threw exception InvalidCharacterError: Failed to execute 'escape' on 'CSS': The string contains an invalid character..
9 PASS CSS.escape('a\0b') threw exception InvalidCharacterError: Failed to execute 'escape' on 'CSS': The string contains an invalid character..
10 PASS CSS.escape() threw exception TypeError: Failed to execute 'escape' on 'CSS': 1 argument required, but only 0 present..
11 PASS CSS.escape(true) is "true"
12 PASS CSS.escape(false) is "false"
13 PASS CSS.escape(null) is "null"
14 PASS CSS.escape('') is ""
15 PASS CSS.escape('
\x01\x02\x1e\x1f') is "\\1 \\2 \\1e \\1f "
16 PASS CSS.escape('0a') is "\\30 a"
17 PASS CSS.escape('1a') is "\\31 a"
18 PASS CSS.escape('2a') is "\\32 a"
19 PASS CSS.escape('3a') is "\\33 a"
20 PASS CSS.escape('4a') is "\\34 a"
21 PASS CSS.escape('5a') is "\\35 a"
22 PASS CSS.escape('6a') is "\\36 a"
23 PASS CSS.escape('7a') is "\\37 a"
24 PASS CSS.escape('8a') is "\\38 a"
25 PASS CSS.escape('9a') is "\\39 a"
26 PASS CSS.escape('a0b') is "a0b"
27 PASS CSS.escape('a1b') is "a1b"
28 PASS CSS.escape('a2b') is "a2b"
29 PASS CSS.escape('a3b') is "a3b"
30 PASS CSS.escape('a4b') is "a4b"
31 PASS CSS.escape('a5b') is "a5b"
32 PASS CSS.escape('a6b') is "a6b"
33 PASS CSS.escape('a7b') is "a7b"
34 PASS CSS.escape('a8b') is "a8b"
35 PASS CSS.escape('a9b') is "a9b"
36 PASS CSS.escape('-0a') is "-\\30 a"
37 PASS CSS.escape('-1a') is "-\\31 a"
38 PASS CSS.escape('-2a') is "-\\32 a"
39 PASS CSS.escape('-3a') is "-\\33 a"
40 PASS CSS.escape('-4a') is "-\\34 a"
41 PASS CSS.escape('-5a') is "-\\35 a"
42 PASS CSS.escape('-6a') is "-\\36 a"
43 PASS CSS.escape('-7a') is "-\\37 a"
44 PASS CSS.escape('-8a') is "-\\38 a"
45 PASS CSS.escape('-9a') is "-\\39 a"
46 PASS CSS.escape('-') is "\\-"
47 PASS CSS.escape('-a') is "-a"
48 PASS CSS.escape('--') is "--"
49 PASS CSS.escape('--a') is "--a"
50 PASS CSS.escape('-_©') is "-_©"
51 PASS CSS.escape('
\x7f
') is "\\7f
"
52 PASS CSS.escape(' ¡¢') is " ¡¢"
53 PASS CSS.escape('a0123456789b') is "a0123456789b"
54 PASS CSS.escape('abcdefghijklmnopqrstuvwxyz') is "abcdefghijklmnopqrstuvwxyz"
55 PASS CSS.escape('ABCDEFGHIJKLMNOPQRSTUVWXYZ') is "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
56 PASS CSS.escape(' !xy') is "\\ \\!xy"
57 PASS CSS.escape('𝌆') is "𝌆"
58 PASS CSS.escape('') is ""
59 PASS CSS.escape('') is ""
60 PASS successfullyParsed is true