Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:subject

32 function replaceTest(result, subject, pattern, replacement) {
34 "\"" + subject + "\".replace(" + pattern + ", " + replacement + ")";
35 assertEquals(result, subject.replace(pattern, replacement), name);
232 var subject = "";
235 subject += String.fromCharCode(i + 24);
242 subject.replace(re, "$" + i));
248 subject.replace(re, "$0" + i));
251 assertEquals("$0", subject.replace(re, "$0"));
252 assertEquals("$00", subject.replace(re, "$00"));
254 subject.replace(re, "$100"));
267 var tail = subject.substr(59);
270 subject.replace(re, "$" + i));