Home | History | Annotate | Download | only in mjsunit

Lines Matching defs:short

39 var short = "xaxbxcx";
41 replaceTest("axbxcx", short, "x", "");
42 replaceTest("axbxcx", short, /x/, "");
43 replaceTest("abc", short, /x/g, "");
45 replaceTest("xaxxcx", short, "b", "");
46 replaceTest("xaxxcx", short, /b/, "");
47 replaceTest("xaxxcx", short, /b/g, "");
50 replaceTest("[]axbxcx", short, "x", "[]");
51 replaceTest("[]axbxcx", short, /x/, "[]");
52 replaceTest("[]a[]b[]c[]", short, /x/g, "[]");
54 replaceTest("xax[]xcx", short, "b", "[]");
55 replaceTest("xax[]xcx", short, /b/, "[]");
56 replaceTest("xax[]xcx", short, /b/g, "[]");
59 replaceTest("[$]axbxcx", short, "x", "[$$]");
60 replaceTest("[$]axbxcx", short, /x/, "[$$]");
61 replaceTest("[$]a[$]b[$]c[$]", short, /x/g, "[$$]");
63 replaceTest("xax[$]xcx", short, "b", "[$$]");
64 replaceTest("xax[$]xcx", short, /b/, "[$$]");
65 replaceTest("xax[$]xcx", short, /b/g, "[$$]");
68 replaceTest("[]axbxcx", short, "x", "[$`]");
69 replaceTest("[]axbxcx", short, /x/, "[$`]");
70 replaceTest("[]a[xa]b[xaxb]c[xaxbxc]", short, /x/g, "[$`]");
72 replaceTest("xax[xax]xcx", short, "b", "[$`]");
73 replaceTest("xax[xax]xcx", short, /b/, "[$`]");
74 replaceTest("xax[xax]xcx", short, /b/g, "[$`]");
77 replaceTest("[x]axbxcx", short, "x", "[$&]");
78 replaceTest("[x]axbxcx", short, /x/, "[$&]");
79 replaceTest("[x]a[x]b[x]c[x]", short, /x/g, "[$&]");
81 replaceTest("xax[b]xcx", short, "b", "[$&]");
82 replaceTest("xax[b]xcx", short, /b/, "[$&]");
83 replaceTest("xax[b]xcx", short, /b/g, "[$&]");
86 replaceTest("[axbxcx]axbxcx", short, "x", "[$']");
87 replaceTest("[axbxcx]axbxcx", short, /x/, "[$']");
88 replaceTest("[axbxcx]a[bxcx]b[cx]c[]", short, /x/g, "[$']");
90 replaceTest("xax[xcx]xcx", short, "b", "[$']");
91 replaceTest("xax[xcx]xcx", short, /b/, "[$']");
92 replaceTest("xax[xcx]xcx", short, /b/g, "[$']");
95 replaceTest("[$1]axbxcx", short, "x", "[$1]");
96 replaceTest("[$1]axbxcx", short, /x/, "[$1]");
97 replaceTest("[]axbxcx", short, /x()/, "[$1]");
98 replaceTest("[$1]a[$1]b[$1]c[$1]", short, /x/g, "[$1]");
99 replaceTest("[]a[]b[]c[]", short, /x()/g, "[$1]");
101 replaceTest("xax[$1]xcx", short, "b", "[$1]");
102 replaceTest("xax[$1]xcx", short, /b/, "[$1]");
103 replaceTest("xax[]xcx", short, /b()/, "[$1]");
104 replaceTest("xax[$1]xcx", short, /b/g, "[$1]");
105 replaceTest("xax[]xcx", short, /b()/g, "[$1]");
108 replaceTest("xax$excx", short, "b", "$e");
109 replaceTest("xax$excx", short, /b/, "$e");
110 replaceTest("xax$excx", short, /b/g, "$e");
112 replaceTest("xaxe$xcx", short, "b", "e$");
113 replaceTest("xaxe$xcx", short, /b/, "e$");
114 replaceTest("xaxe$xcx", short, /b/g, "e$");
124 replaceTest("0axbxcx", short, "x", function r(m, i, s) {
128 assertEquals(short, s, "replace('x',func(..,s))");
134 replaceTest("0axbxcx", short, /x/, function r(m, i, s) {
138 assertEquals(short, s, "replace(/x/,func(..,s))");
144 replaceTest("0a1b2c3", short, /x/g, function r(m, i, s) {
148 assertEquals(short, s, "replace(/x/g,func(..,s))");
154 replaceTest("0a1b2cx", short, /(x)(?=(.))/g, function r(m, c1, c2, i, s) {
160 assertEquals(short, s, "replace(/(x)(?=(.))/g,func(..,s))");