/external/v8/test/mjsunit/ |
H A D | array-shift.js | 30 var array = new Array(10); 38 var array = new Array(len); class 39 Array.prototype[3] = "@3"; 40 Array.prototype[7] = "@7"; 44 assertEquals(array[i], Array.prototype[i]); 51 assertEquals(array[2], Array.prototype[3]); 54 assertEquals(array[6], Array.prototype[7]); 58 Array.prototype[5] = "@5"; 59 assertEquals(array[5], Array.prototype[5]); 62 assertEquals(array[3], Array [all...] |
H A D | array-join.js | 37 Array.prototype.toString = function() { return "array"; } 40 Array.prototype.toString = function() { throw 42; } 43 Array.prototype.toString = function() { return "array"; } 34 Array.prototype.toString = function() { return "array"; } class
|
H A D | array-concat.js | 34 var a = new Array(pos); 54 Array.prototype["123"] = 'baz'; 66 Array.prototype["123"] = undefined; 72 Array.prototype[123] = 'baz'; 80 Array.prototype.moe = 'joe'; 91 Array.prototype.moe = undefined; 50 Array.prototype["123"] = 'baz'; class
|
H A D | array-length.js | 46 var a = new Array(); 61 var a = new Array(); 76 var a = new Array(); 82 var a = new Array(); 104 var a = new Array(); 110 Array.prototype.pop.apply(o); 109 Array.prototype.pop.apply(o); class
|
H A D | array-unshift.js | 31 var array = new Array(10); 45 var array = new Array(len); 50 Array.prototype[0] = at0; 51 Array.prototype[2] = at2; 58 // ... but sees values from Array.prototype 65 assertTrue(delete Array.prototype[0]); 66 assertTrue(delete Array.prototype[2]); 83 var array = new Array(len); 84 Array.prototype[3] = "@3"; 85 Array 48 Array.prototype[0] = at0; class [all...] |
H A D | array-slice.js | 30 var array = new Array(10); 41 var array = new Array(7); 55 var array = new Array(7); 121 var array = new Array(len); 127 Array.prototype[3] = at3; 128 Array.prototype[7] = at7; 132 assertEquals(array[i], Array.prototype[i]); 139 assertTrue(delete Array.prototype[3]); 140 assertTrue(delete Array.prototype[7]); 154 Array 126 Array.prototype[3] = at3; class [all...] |
H A D | apply.js | 39 assertTrue(this === f0.apply(this, new Array(1)), "2b"); 40 assertTrue(this === f0.apply(this, new Array(2)), "2c"); 41 assertTrue(this === f0.apply(this, new Array(4242)), "2d"); 44 assertTrue(this === f0.apply(null, new Array(1)), "3b"); 45 assertTrue(this === f0.apply(null, new Array(2)), "3c"); 46 assertTrue(this === f0.apply(this, new Array(4242)), "3d"); 49 assertTrue(this === f0.apply(void 0, new Array(1)), "4b"); 50 assertTrue(this === f0.apply(void 0, new Array(2)), "4c"); 55 assertTrue(void 0 === f1.apply(this, new Array(1)), "5b"); 56 assertTrue(void 0 === f1.apply(this, new Array( 169 Array.prototype["1"] = "sep"; class [all...] |
H A D | array-splice.js | 31 var array = new Array(10); 236 var array = new Array(len); class 237 Array.prototype[3] = at3; 238 Array.prototype[7] = at7; 243 // value of Array.prototype[3] while copying. 248 assertTrue(delete Array.prototype[7]); 277 new Array((1 << 32) - 3).splice(-1, 0, 1, 2, 3, 4, 5); 285 var array = new Array(bigNum);
|
H A D | obj-construct.js | 34 function Array() { function
|
H A D | sparse-array-reverse.js | 44 Array.prototype[30] = 'B'; // Should be hidden by a[30]. 52 delete Array.prototype[30]; 81 a = new Array(size); 83 a = new Array(); 98 Array.prototype[pos] = letter; 114 Array.prototype[pos] = letter; 126 delete(Array.prototype[pos]); 43 Array.prototype[30] = 'B'; // Should be hidden by a[30]. class
|
H A D | array-functions-prototype-misc.js | 61 return new Array(length); 63 the_prototype = Array.prototype; 102 return Array.prototype.concat.call(array, other); 105 return Array.prototype.slice.call(array, start, len); 108 return Array.prototype.splice.call(array, start, len); 111 return Array.prototype.splice.call(array, start, len, elt); 114 return Array.prototype.unshift.call(array, elt); 117 return Array.prototype.unshift.call(array, elt1, elt2); 120 return Array.prototype.shift.call(array); 273 var a = new Array(LARG 307 Array.prototype[1] = 1; class [all...] |
H A D | array-functions-prototype.js | 40 Array.prototype[0] = 'zero'; 41 Array.prototype[1] = 'one'; 42 Array.prototype[2] = 'two'; 63 assertEquals('zero', Array.prototype.shift.call(nonArray)); 94 assertEquals(4, Array.prototype.unshift.call(nonArray, 'zero')); 125 assertArrayEquals(['zero'], Array.prototype.splice.call(nonArray, 0, 1)); 156 assertArrayEquals(['zero', 'one', 'two'], Array.prototype.slice.call(nonArray, 0, 3)); 37 Array.prototype[0] = 'zero'; class
|
H A D | array-sort.js | 164 Array.prototype.sort.call(obj); 180 var x = new Array(4); 184 Array.prototype.sort.call(x); 203 Array.prototype.sort.call(x); 228 Array.prototype.sort.call(x); 254 Array.prototype.sort.call(obj, function(a,b) { return (b < a) - (a < b); }); 286 Array.prototype.sort.call(y); 335 Array.prototype.sort.call(x); 163 Array.prototype.sort.call(obj); class
|
/external/v8/test/message/ |
H A D | overwritten-builtins.js | 29 Array.prototype.join = function() { return []; }; 28 Array.prototype.join = function() { return []; }; class
|
/external/webkit/JavaScriptCore/tests/mozilla/js1_6/Array/ |
H A D | regress-304828.js | 39 var summary = 'Array Generic Methods'; 47 // use Array methods on a String 53 actual = Array.prototype.join.call(value); 66 actual = Array.prototype.reverse.call(value) + ''; 79 actual = Array.prototype.sort.call(value) + ''; 92 actual = Array.prototype.push.call(value, 'd', 'e', 'f'); 106 actual = Array.prototype.pop.call(value); 120 actual = Array.prototype.unshift.call(value, 'a', 'b', 'c'); 134 actual = Array.prototype.shift.call(value); 148 actual = Array 213 Array.prototype.forEach.call(value, class [all...] |
/external/v8/test/mjsunit/regress/ |
H A D | regress-326.js | 32 Array.prototype.sort.call(nonArray); 31 Array.prototype.sort.call(nonArray); class
|
/external/webkit/JavaScriptCore/tests/mozilla/js1_3/inherit/ |
H A D | proto_12.js | 45 var testcases = new Array(); 60 this.projects = projs || new Array(); 81 this.projects = projs || new Array(); 101 var les = new Engineer( "Morris, Les", new Array("JavaScript"), "indy" ); 115 Array.prototype.getClass = Object.prototype.toString; 119 "[object Array]", 113 Array.prototype.getClass = Object.prototype.toString; class
|
H A D | proto_9.js | 48 var testcases = new Array(); 55 this.projects = new Array(); 77 Array.prototype.getClass = Object.prototype.toString; 93 "[object Array]", 75 Array.prototype.getClass = Object.prototype.toString; class
|
/external/webkit/SunSpider/tests/parse-only/ |
H A D | concat-jquery-mootools-prototype.js | 113 Array.prototype.slice.call( this ) : 143 // Resetting the length to 0, then using the native Array push 146 Array.prototype.push.apply( this, elems ); 283 // Behaves like an Array's method, not like a jQuery method. 500 return this.pushStack( Array.prototype.slice.apply( this, arguments ), 501 "slice", Array.prototype.slice.call(arguments).join(",") ); 636 return toString.call(obj) === "[object Array]"; 1504 if ( toString.call(checkSet) === "[object Array]" ) { 2059 array = Array.prototype.slice.call( array ); 2072 Array 145 Array.prototype.push.apply( this, elems ); class [all...] |
H A D | jquery-1.3.2.js | 113 Array.prototype.slice.call( this ) : 143 // Resetting the length to 0, then using the native Array push 146 Array.prototype.push.apply( this, elems ); 283 // Behaves like an Array's method, not like a jQuery method. 500 return this.pushStack( Array.prototype.slice.apply( this, arguments ), 501 "slice", Array.prototype.slice.call(arguments).join(",") ); 636 return toString.call(obj) === "[object Array]"; 1504 if ( toString.call(checkSet) === "[object Array]" ) { 2059 array = Array.prototype.slice.call( array ); 2072 Array 145 Array.prototype.push.apply( this, elems ); class [all...] |
H A D | mootools-1.2.2-core-nc.js | 75 var args = Array.prototype.slice.call(arguments); 91 var natives = {'Array': Array, 'Date': Date, 'Function': Function, 'Number': Number, 'RegExp': RegExp, 'String': String}; property 98 'Array': ["concat", "indexOf", "join", "lastIndexOf", "pop", "push", "reverse", "shift", "slice", "sort", "splice", "toString", "unshift", "valueOf"], 146 Array.implement({ 154 Array.alias('forEach', 'each'); 158 var l = iterable.length, array = new Array(l); 162 return Array.prototype.slice.call(iterable); 187 ((type == 'arguments' || type == 'collection' || type == 'array') ? Array : Hash).each(iterable, fn, bind); 208 var args = Array [all...] |
/external/webkit/SunSpider/tests/sunspider-0.9/ |
H A D | string-tagcloud.js | 40 Array.prototype.toJSONString = function (w) { 38 Array.prototype.toJSONString = function (w) { class
|
/external/webkit/SunSpider/tests/sunspider-0.9.1/ |
H A D | string-tagcloud.js | 40 Array.prototype.toJSONString = function (w) { 38 Array.prototype.toJSONString = function (w) { class
|
/external/webkit/WebCore/bridge/jsc/ |
H A D | BridgeJSC.cpp | 42 Array::Array(PassRefPtr<RootObject> rootObject) function in class:JSC::Bindings::Array 48 Array::~Array()
|
H A D | BridgeJSC.h | 126 class Array : public Noncopyable { class in namespace:JSC::Bindings 128 Array(PassRefPtr<RootObject>); 129 virtual ~Array();
|