Home | History | Annotate | Download | only in mjsunit

Lines Matching full:substring

41 var s1 = s.substring(1);
50 assertEquals(s.substring(s.length - 1), s.substr(-1));
51 assertEquals(s.substring(s.length - 1), s.substr(-1.2));
52 assertEquals(s.substring(s.length - 1), s.substr(-1.7));
53 assertEquals(s.substring(s.length - 2), s.substr(-2));
54 assertEquals(s.substring(s.length - 2), s.substr(-2.3));
55 assertEquals(s.substring(s.length - 2, s.length - 1), s.substr(-2, 1));
76 var z = x.substring(i, i+j);
92 var z = x.substring(i, i + j);
101 // Keep creating strings to to force allocation failure on substring creation.
107 var z = x.substring(i % xl);
119 var z = x.substring(i % xl);
124 // Substring of substring.
129 var z = last.substring(i);
183 assertEquals("klmno", ascii.substring(10,15) + ascii.substring(16));
184 assertEquals("\u03B4\u03B7", utf.substring(3,4) + utf.substring(6,7));
185 assertEquals("klp", ascii.substring(10,12) + ascii.substring(15,16));
186 assertEquals("\u03B1\u03B4\u03B5", utf.substring(0,1) + utf.substring(5,3));
187 assertEquals("", ascii.substring(16) + utf.substring(16));
189 ascii.substring(1,6) + utf.substring(3,9));
191 utf.substring(3,9) + ascii);
193 utf.substring(5,1) + utf.substring(3,7));
232 assertEquals("234567890123456789", c1.substring(1, 19));
233 assertEquals("bcdefghijklmno", c1.substring(21, 35));
234 assertEquals("2345678901234567890abcdefghijklmno", c1.substring(1, 35));
235 assertEquals("234567890123456789", c2.substring(1, 19));
236 assertEquals("bcdefghijklmno", c2.substring(41, 55));
237 assertEquals("2345678901234567890abcdefghijklmno", c2.substring(21, 55));