Home | History | Annotate | Download | only in es6

Lines Matching refs:Array

28 assertEquals(1, Array.prototype.find.length);
40 // Test predicate is not called when array is empty
93 // Test predicate is called array.length times
109 // Test Array.prototype.find works with String
117 var found = Array.prototype.find.call(a, function(val, key, obj) {
132 found = Array.prototype.find.apply(a, [function(val, key, obj) {
150 // Test Array.prototype.find works with exotic object
165 Array.prototype.push.apply(a, [30, 31, 32]);
166 var found = Array.prototype.find.call(a, function(val, key, obj) {
184 // Test array modifications
205 var a = new Array(30);
227 __proto__: Array.prototype,
252 Array.prototype.push.apply(thisArg, ["c", "b", "a"]);
279 assertThrows('Array.prototype.find.call(null, function() { })',
281 assertThrows('Array.prototype.find.call(undefined, function() { })',
283 assertThrows('Array.prototype.find.apply(null, function() { }, [])',
285 assertThrows('Array.prototype.find.apply(undefined, function() { }, [])',
298 assertThrows('Array.prototype.find.call({}, null)', TypeError);
299 assertThrows('Array.prototype.find.call({}, undefined)', TypeError);
300 assertThrows('Array.prototype.find.call({}, 0)', TypeError);
301 assertThrows('Array.prototype.find.call({}, true)', TypeError);
302 assertThrows('Array.prototype.find.call({}, false)', TypeError);
303 assertThrows('Array.prototype.find.call({}, "")', TypeError);
304 assertThrows('Array.prototype.find.call({}, {})', TypeError);
305 assertThrows('Array.prototype.find.call({}, [])', TypeError);
306 assertThrows('Array.prototype.find.call({}, /\d+/)', TypeError);
308 assertThrows('Array.prototype.find.apply({}, null, [])', TypeError);
309 assertThrows('Array.prototype.find.apply({}, undefined, [])', TypeError);
310 assertThrows('Array.prototype.find.apply({}, 0, [])', TypeError);
311 assertThrows('Array.prototype.find.apply({}, true, [])', TypeError);
312 assertThrows('Array.prototype.find.apply({}, false, [])', TypeError);
313 assertThrows('Array.prototype.find.apply({}, "", [])', TypeError);
314 assertThrows('Array.prototype.find.apply({}, {}, [])', TypeError);
315 assertThrows('Array.prototype.find.apply({}, [], [])', TypeError);
316 assertThrows('Array.prototype.find.apply({}, /\d+/, [])', TypeError);