Lines Matching refs:test
5 * This file is designed to help test the new nsString classes.
51 This class's only purpose in life is to test the
68 //test 1: unicode char is stripped correctly using StripChars()
70 PRUnichar test[]={0x0041,0x0051,0x0052,0x0000};
71 nsString T(test);
77 //test 2: unicode char is not matched and stripped when high-order byte is not 0x00
79 PRUnichar test[]={0x4e41,0x4e51,0x4e52,0x4e53,0x0000};
80 nsAutoString T(test);
86 //test 3: unicode char is not matched and stripped when high-order byte is 0xFF
89 PRUnichar test[] = {0xFF41,0x4e51,0x4e52,0x4e53,0x0000};
90 nsAutoString T(test);
92 nsAutoString R(test);
97 //test 4: unicode char is matched and stripped correctly using StripChar()
98 PRUnichar test[] = {0x0041,0x0051,0x0052,0x0000};
99 nsAutoString T(test);
106 //test 5: unicode char is not matched and stripped when high-order byte is not 0x00
108 PRUnichar test[]={0x4e41,0x4e51,0x4e52,0x4e53,0x0000};
109 nsAutoString T(test);
116 //test 6: unicode char is not matched and stripped when high-order byte is 0xFF
118 PRUnichar test[] = {0xFF41,0x4e51,0x4e52,0x4e53,0x0000};
119 nsAutoString T(test);
126 //test 7: unicode char is matched and replaced correctly using ReplaceChar()
128 PRUnichar test[] = {0x0041,0x0051,0x0052,0x0000};
129 nsAutoString T(test);
136 //test 8: unicode char is not matched or replaced when high-order byte != 0x00
138 PRUnichar test[] = {0x4e41,0x4e51,0x4e52,0x4e53,0x0000};
139 nsAutoString T(test);
146 //test 9: unicode char is not matched or replaced when high-order byte matches search char
148 PRUnichar test[] = {0x4150,0x4e51,0x4e52,0x4e53,0x0000};
149 nsAutoString T(test);
156 //test 10: unicode char is not matched or replaced when high-order byte == 0xFF
158 PRUnichar test[] = {0xFFc1,0x4e51,0x4e52,0x4e53,0x0000};
159 nsAutoString T(test);
167 //test 11: unicode char is correctly replaced when parameter 1 is a string
169 PRUnichar test[] = {0x0041,0x0051,0x0052,0x0000};
170 nsAutoString T(test);
177 //test 12: unicode char is not replaced when high-order byte != 0x00
179 PRUnichar test[] = {0x4e41,0x0051,0x0052,0x0000};
180 nsAutoString T(test);
188 //test 13: unicode char is not replaced when high-order byte matches char in search string
189 PRUnichar test[] = {0x4150,0x4e51,0x4e52,0x4e53,0x0000};
190 nsAutoString T(test);
198 PRUnichar test[] = {0xFFc2,0x4e51,0x4e52,0x4e53,0x0000};
199 nsAutoString T(test);
206 PRUnichar test[] = {0xFFc2,0x4e51,0x4e52,0x4e53,0x0000};
207 nsAutoString T(test);
218 PRUnichar test[] = {0x0041,0x0042,0x0043,0x0044,0x0045,0x0000};
219 nsAutoString T(test);
228 PRUnichar test[] = {0x0041,0x4e42,0x0043,0x0044,0x0045,0x0000};
229 nsAutoString T(test);
238 PRUnichar test[] = {0x0041,0x4e51,0x4e52,0x4e53,0x0000};
239 nsAutoString T(test);
246 PRUnichar test[] = {0x4e41,0x4e51,0x4e52,0x4e53,0x0000};
247 nsAutoString T(test);
254 PRUnichar test[] = {0x4e51,0x4e52,0x4e53,0x4e41,0x0000};
255 nsAutoString T(test);
263 // PRUnichar test[] = {0x4e51,0x4e52,0x4e53,0x4e22,0x0000};
264 // nsAutoString T(test);
273 PRUnichar test[] = {0x0041,0x0042,0x0043,0x0051,0x0052,0x0000};
274 nsAutoString T(test);
279 PRUnichar test[] = {0x4e41,0x4e42,0x4e43,0x4e53,0x0000};
280 nsAutoString T(test);
285 PRUnichar test[] = {0xFFc1,0x0051,0x0052,0x0053,0x0000};
286 nsAutoString T(test);
294 PRUnichar test[] = {0x0041,0x0051,0x0052,0x0000};
295 nsAutoString T(test);
299 PRUnichar test[] = {0x4e41,0x4e42,0x4e43,0x4e53,0x0000};
300 nsAutoString T(test);
304 PRUnichar test[] = {0xFFc1,0x4e51,0x4e52,0x4e53,0x0000};
305 nsAutoString T(test);
310 PRUnichar test[] = {0x4132,0x0051,0x0052,0x0000};
311 nsAutoString T(test);
316 PRUnichar test[] = {0x0041,0x0051,0x0052,0x0000};
317 nsAutoString T(test);
321 PRUnichar test[] = {0x4e41,0x4e42,0x4e43,0x4e53,0x0000};
322 nsAutoString T(test);
327 PRUnichar test[] = {0xFFc1,0x4e51,0x4e52,0x4e53,0x0000};
328 nsAutoString T(test);
334 PRUnichar test[] = {0x4132,0x5132,0x5232,0x0000};
335 nsAutoString T(test);
341 PRUnichar test[] = {0x0051,0x0052,0x0041,0x0042,0x0043,0x0000};
342 nsAutoString T(test);
346 PRUnichar test[] = {0x4e41,0x4e42,0x4e43,0x4e53,0x0000};
347 nsAutoString T(test);
351 PRUnichar test[] = {0xFFc1,0xFFc2,0xFFc3,0x4e53,0x0000};
352 nsAutoString T(test);
360 PRUnichar test[] = {0x0041,0x0042,0x0043,0x0000};
361 nsAutoString T(test);
366 PRUnichar test[] = {0x4e41,0x4e42,0x4e43,0x4e53,0x0000};
367 nsAutoString T(test);
371 PRUnichar test[] = {0xFFc1,0x4e51,0x4e52,0x4e53,0x0000};
372 nsAutoString T(test);
378 PRUnichar test[] = {0x4132,0x0051,0x0052,0x0000};
379 nsAutoString T(test);
384 PRUnichar test[] = {0x0041,0x0042,0x0043,0x0000};
385 nsAutoString T(test);
389 PRUnichar test[] = {0xc341,0xc342,0xc343};
390 nsAutoString T(test);