Lines Matching refs:apply
38 assertSame(this, f0.apply(), "1-0");
40 assertSame(this, f0.apply(this), "2a");
41 assertSame(this, f0.apply(this, new Array(1)), "2b");
42 assertSame(this, f0.apply(this, new Array(2)), "2c");
43 assertSame(this, f0.apply(this, new Array(4242)), "2d");
45 assertSame(this, f0.apply(null), "3a");
46 assertSame(this, f0.apply(null, new Array(1)), "3b");
47 assertSame(this, f0.apply(null, new Array(2)), "3c");
48 assertSame(this, f0.apply(this, new Array(4242)), "3d");
50 assertSame(this, f0.apply(void 0), "4a");
51 assertSame(this, f0.apply(void 0, new Array(1)), "4b");
52 assertSame(this, f0.apply(void 0, new Array(2)), "4c");
54 assertEquals(void 0, f1.apply(), "1-1");
56 assertEquals(void 0, f1.apply(this), "5a");
57 assertEquals(void 0, f1.apply(this, new Array(1)), "5b");
58 assertEquals(void 0, f1.apply(this, new Array(2)), "5c");
59 assertEquals(void 0, f1.apply(this, new Array(4242)), "5d");
60 assertEquals(42, f1.apply(this, new Array(42, 43)), "5e");
61 assertEquals("foo", f1.apply(this, new Array("foo", "bar", "baz", "bo")), "5f");
63 assertEquals(void 0, f1.apply(null), "6a");
64 assertEquals(void 0, f1.apply(null, new Array(1)), "6b");
65 assertEquals(void 0, f1.apply(null, new Array(2)), "6c");
66 assertEquals(void 0, f1.apply(null, new Array(4242)), "6d");
67 assertEquals(42, f1.apply(null, new Array(42, 43)), "6e");
68 assertEquals("foo", f1.apply(null, new Array("foo", "bar", "baz", "bo")), "6f");
70 assertEquals(void 0, f1.apply(void 0), "7a");
71 assertEquals(void 0, f1.apply(void 0, new Array(1)), "7b");
72 assertEquals(void 0, f1.apply(void 0, new Array(2)), "7c");
73 assertEquals(void 0, f1.apply(void 0, new Array(4242)), "7d");
74 assertEquals(42, f1.apply(void 0, new Array(42, 43)), "7e");
75 assertEquals("foo", f1.apply(void 0, new Array("foo", "bar", "ba", "b")), "7f");
86 assertEquals(expect, j.apply(undefined, arr), "apply to undefined");
100 assertEquals("42foofishhorse", f.apply(this, arr), "apply to this");
110 assertEquals("bar42foofishhorse", s.apply("bar", arr), "apply to string");
122 assertEquals(42 + j, al.apply(345, a));
131 al.apply(345, a);
165 var same_primes = Array.prototype.constructor.apply(Array, primes);
178 assertEquals("morseper", String.prototype.concat.apply("", holey),
180 assertEquals("morseper", String.prototype.concat.apply("", holey, 1),
182 assertEquals("morseper", String.prototype.concat.apply("", holey, 1, 2),
184 assertEquals("morseper", String.prototype.concat.apply("", holey, 1, 2, 3),
186 assertEquals("morseper", String.prototype.concat.apply("", holey, 1, 2, 3, 4),
193 String.prototype.concat.apply.apply(String.prototype.concat, primes),
199 assertSame(this, f0.apply(this, {}), "non-array-1");
200 assertSame(this, f0.apply(this, { length:1 }), "non-array-2");
201 assertEquals(void 0, f1.apply(this, { length:1 }), "non-array-3");
202 assertEquals(void 0, f1.apply(this, { 0:"foo" }), "non-array-4");
203 assertEquals("foo", f1.apply(this, { length:1, 0:"foo" }), "non-array-5");