Home | History | Annotate | Download | only in mjsunit

Lines Matching full:fromcharcode

28 // Test String.fromCharCode.
31 // Test various receivers and arguments passed to String.fromCharCode.
33 Object.prototype.fromCharCode = function(x) { return this; };
35 var fcc = String.fromCharCode;
41 assertEquals(" ", String.fromCharCode(0x20));
42 assertEquals(" ", String.fromCharCode(0x20 + 0x10000));
43 assertEquals(" ", String.fromCharCode(0x20 - 0x10000));
44 assertEquals(" ", String.fromCharCode(0x20 + 0.5));
46 assertEquals("\u1234", String.fromCharCode(0x1234));
47 assertEquals("\u1234", String.fromCharCode(0x1234 + 0x10000));
48 assertEquals("\u1234", String.fromCharCode(0x1234 - 0x10000));
49 assertEquals("\u1234", String.fromCharCode(0x1234 + 0.5));
51 assertEquals(" ", String.fromCharCode(0x20, 0x20));
52 assertEquals(" ", String.fromCharCode(0x20 + 0.5, 0x20));
72 assertEquals(expected, receiver.fromCharCode(0x20));
73 assertEquals(expected, receiver.fromCharCode(0x20 - 0x10000));
74 assertEquals(expected, receiver.fromCharCode(0x20 + 0.5));
89 if (i == 5) String.fromCharCode = function() { return 42; };
90 assertEquals(expected, String.fromCharCode(0x20));