Lines Matching refs:charAt
38 assertEquals("t", s().charAt());
39 assertEquals("t", s().charAt("string"));
40 assertEquals("t", s().charAt(null));
41 assertEquals("t", s().charAt(void 0));
42 assertEquals("t", s().charAt(false));
43 assertEquals("e", s().charAt(true));
44 assertEquals("", s().charAt(-1));
45 assertEquals("", s().charAt(len));
46 assertEquals("", s().charAt(slowIndexOutOfRange));
47 assertEquals("", s().charAt(1/0));
48 assertEquals("", s().charAt(-1/0));
49 assertEquals("t", s().charAt(0));
50 assertEquals("t", s().charAt(-0.0));
51 assertEquals("t", s().charAt(-0.1));
52 assertEquals("t", s().charAt(0.4));
53 assertEquals("e", s().charAt(slowIndex1));
54 assertEquals("s", s().charAt(slowIndex2));
55 assertEquals("t", s().charAt(3));
56 assertEquals("t", s().charAt(3.4));
57 assertEquals("t", s().charAt(NaN));
87 alpha[i] = c.charAt(0);
93 assertEquals(alpha[i], alphaStr.charAt(i));
94 assertEquals(String.fromCharCode(i), alphaStr.charAt(i));
99 charAt: String.prototype.charAt, property
106 assertEquals("0", o.charAt(0));
107 assertEquals("1", o.charAt(1));
108 assertEquals("1", o.charAt(1.4));
109 assertEquals("1", o.charAt(slowIndex1));
110 assertEquals("2", o.charAt(2));
111 assertEquals("2", o.charAt(slowIndex2));
118 assertEquals("", o.charAt(-1));
119 assertEquals("", o.charAt(-1.4));
120 assertEquals("", o.charAt(10));
121 assertEquals("", o.charAt(slowIndexOutOfRange));
146 result = o.charAt(1);
195 result = o.charAt(index);
232 String.prototype.charAt = function() { return "%"; }; method in String
234 result = s.charAt(1);
238 delete String.prototype.charAt; // Restore the default. method in delete