Lines Matching refs:Unescape
29 * @fileoverview Check that the global escape and unescape functions work
36 // Check the unescape chars are not escaped
61 // Check all chars up to 1000 in groups of 10 using unescape as a check
64 assertEquals(s, unescape(escape(s)));
74 assertEquals(example, unescape(escape(example)));
77 // Check unescape can cope with upper and lower case
78 assertEquals(unescape("%41%4A%4a"), "AJJ");
81 assertEquals("%U1234", unescape("%U1234"));
84 assertEquals("%", unescape("%"));
85 assertEquals("%4", unescape("%4"));
86 assertEquals("%u", unescape("%u"));
87 assertEquals("%u4", unescape("%u4"));
88 assertEquals("%u44", unescape("%u44"));
89 assertEquals("%u444", unescape("%u444"));
90 assertEquals("%4z", unescape("%4z"));
91 assertEquals("%uzzzz", unescape("%uzzzz"));
92 assertEquals("%u4zzz", unescape("%u4zzz"));
93 assertEquals("%u44zz", unescape("%u44zz"));
94 assertEquals("%u444z", unescape("%u444z"));
95 assertEquals("%4<", unescape("%4<"));
96 assertEquals("%u<<<<", unescape("%u<<<<"));
97 assertEquals("%u4<<<", unescape("%u4<<<"));
98 assertEquals("%u44<<", unescape("%u44<<"));
99 assertEquals("%u444<", unescape("%u444<"));
100 assertEquals("foo%4<", unescape("foo%4<"));
101 assertEquals("foo%u<<<<", unescape("foo%u<<<<"));
102 assertEquals("foo%u4<<<", unescape("foo%u4<<<"));
103 assertEquals("foo%u44<<", unescape("foo%u44<<"));
104 assertEquals("foo%u444<", unescape("foo%u444<"));
105 assertEquals("foo%4<bar", unescape("foo%4<bar"));
106 assertEquals("foo%u<<<<bar", unescape("foo%u<<<<bar"));
107 assertEquals("foo%u4<<<bar", unescape("foo%u4<<<bar"));
108 assertEquals("foo%u44<<bar", unescape("foo%u44<<bar"));
109 assertEquals("foo%u444<bar", unescape("foo%u444<bar"));
110 assertEquals("% ", unescape("%%20"));
111 assertEquals("%% ", unescape("%%%20"));
113 // Unescape stress
117 assertEquals(example, unescape(eexample));