Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:replace

221 assertEquals("*a\n*b\r*c\n*\r*d\r*\n*e", "a\nb\rc\n\rd\r\ne".replace(re, "*$1"));
225 assertEquals("xAx", "A".replace(re, "x"));
226 assertEquals(3, String.fromCharCode(161).replace(re, "x").length);
244 if (doit) return "".replace(/foo(/gi, "");
253 assertEquals("t", "123456789t".replace(re, "$10"), "$10");
254 assertEquals("15", "123456789t".replace(re, "$15"), "$10");
255 assertEquals("1", "123456789t".replace(re, "$01"), "$01");
256 assertEquals("$001", "123456789t".replace(re, "$001"), "$001");
258 assertEquals("bar$0", "foox".replace(re, "bar$0"), "$0");
259 assertEquals("bar$00", "foox".replace(re, "bar$00"), "$00");
260 assertEquals("bar$000", "foox".replace(re, "bar$000"), "$000");
261 assertEquals("barx", "foox".replace(re, "bar$01"), "$01 2");
262 assertEquals("barx5", "foox".replace(re, "bar$15"), "$15");