Home | History | Annotate | Download | only in mjsunit

Lines Matching full:test_replace

32 function test_replace(result, expected, search, replace) {
37 test_replace(prefix1024 + "abcdefghijklmnopqrstuvwxyz",
41 test_replace(prefix1024 + "abcdefghijklmnopqrstuvwxyz\u1234",
45 test_replace(prefix1024 + "abcdefghijklmnopqrstuvwxyz",
49 test_replace(prefix1024 + "abcdefghijklmnopqrstuvwxyz\u1234",
54 test_replace(prefix1024 + "abcdefghijklmnopqrstuvwxyz",
58 test_replace(prefix1024 + "abcdefghijklmnopq\u1234stuvwxyz",
64 test_replace(not_found_1, not_found_1, "+", "-");
67 test_replace(not_found_2, not_found_2, "+", "---");
70 test_replace(not_found_3, not_found_3, "\u1234", "ZZZ");
77 test_replace(nested_1, nested_1_result, "z", "aa");
83 test_replace(nested_2, nested_2_result, "\u2012", "aa");
88 test_replace(slice_1, slice_1_result, "y", "Q");
92 test_replace(slice_2, slice_2_result, "\u1234", "Q");