Lines Matching refs:charCodeAt
59 assertEquals(116, s().charCodeAt());
60 assertEquals(116, s().charCodeAt("string"));
61 assertEquals(116, s().charCodeAt(null));
62 assertEquals(116, s().charCodeAt(void 0));
63 assertEquals(116, s().charCodeAt(false));
64 assertEquals(101, s().charCodeAt(true));
65 assertEquals(116, s().charCodeAt(0));
66 assertEquals(116, s().charCodeAt(-0.0));
67 assertEquals(116, s().charCodeAt(-0.1));
68 assertEquals(116, s().charCodeAt(0.4));
69 assertEquals(101, s().charCodeAt(slowIndex1));
70 assertEquals(115, s().charCodeAt(slowIndex2));
71 assertEquals(116, s().charCodeAt(3));
72 assertEquals(116, s().charCodeAt(3.4));
73 assertEquals(116, s().charCodeAt(NaN));
74 assertTrue(isNaN(s().charCodeAt(-1)));
75 assertTrue(isNaN(s().charCodeAt(len)));
76 assertTrue(isNaN(s().charCodeAt(slowIndexOutOfRange)));
77 assertTrue(isNaN(s().charCodeAt(1/0)));
78 assertTrue(isNaN(s().charCodeAt(-1/0)));
100 charCodeAt: String.prototype.charCodeAt, property
112 assertEquals(48, o.charCodeAt(0));
113 assertEquals(49, o.charCodeAt(1));
114 assertEquals(49, o.charCodeAt(1.4));
115 assertEquals(49, o.charCodeAt(slowIndex1));
116 assertEquals(50, o.charCodeAt(2));
117 assertEquals(50, o.charCodeAt(slowIndex2));
122 assertTrue(isNaN(o.charCodeAt(-1)));
123 assertTrue(isNaN(o.charCodeAt(-1.4)));
124 assertTrue(isNaN(o.charCodeAt(10)));
125 assertTrue(isNaN(o.charCodeAt(slowIndexOutOfRange)));
168 result = o.charCodeAt(1);
215 result = o.charCodeAt(index);
247 String.prototype.charCodeAt = function() { return 42; }; method in String
249 result = s.charCodeAt(1);
253 delete String.prototype.charCodeAt; // Restore the default. method in delete