Lines Matching refs:fromCharCode
35 expected += String.fromCharCode(i);
41 result += String.fromCharCode(i);
43 assertEquals(String.fromCharCode(0xFFFF), String.fromCharCode(0xFFFFFFFF));
54 Object.prototype.fromCharCode = function(x) { return this; }; function
56 var fcc = String.fromCharCode;
62 assertEquals(" ", String.fromCharCode(0x20));
63 assertEquals(" ", String.fromCharCode(0x20 + 0x10000));
64 assertEquals(" ", String.fromCharCode(0x20 - 0x10000));
65 assertEquals(" ", String.fromCharCode(0x20 + 0.5));
67 assertEquals("\u1234", String.fromCharCode(0x1234));
68 assertEquals("\u1234", String.fromCharCode(0x1234 + 0x10000));
69 assertEquals("\u1234", String.fromCharCode(0x1234 - 0x10000));
70 assertEquals("\u1234", String.fromCharCode(0x1234 + 0.5));
72 assertEquals(" ", String.fromCharCode(0x20, 0x20));
73 assertEquals(" ", String.fromCharCode(0x20 + 0.5, 0x20));
93 assertEquals(expected, receiver.fromCharCode(0x20));
94 assertEquals(expected, receiver.fromCharCode(0x20 - 0x10000));
95 assertEquals(expected, receiver.fromCharCode(0x20 + 0.5));
106 assertEquals("AAAA", String.fromCharCode(65, 65, 65, 65));
107 assertEquals("AAAA", String.fromCharCode(65, 65, 65, 65));
108 %OptimizeFunctionOnNextCall(String.fromCharCode);
109 assertEquals("AAAA", String.fromCharCode(65, 65, 65, 65));
114 if (i == 5) String.fromCharCode = function() { return 42; };
115 assertEquals(expected, String.fromCharCode(0x20));