Lines Matching refs:array
5 var array = []; variable
7 toJSON: function() { array.length = 1; return "funky"; }
9 for (var i = 0; i < 10; i++) array[i] = i;
10 array[0] = funky;
12 JSON.stringify(array));
14 array = [];
16 get value() { array.length = 1; return "funky"; }
18 for (var i = 0; i < 10; i++) array[i] = i;
19 array[3] = funky;
21 JSON.stringify(array));
23 array = [];
25 get value() { array.pop(); return "funky"; }
27 for (var i = 0; i < 10; i++) array[i] = i;
28 array[3] = funky;
29 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,null]', JSON.stringify(array));
31 array = [];
33 get value() { delete array[9]; return "funky"; }
35 for (var i = 0; i < 10; i++) array[i] = i;
36 array[3] = funky;
37 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,null]', JSON.stringify(array));
39 array = [];
41 get value() { delete array[6]; return "funky"; }
43 for (var i = 0; i < 10; i++) array[i] = i;
44 array[3] = funky;
45 assertEquals('[0,1,2,{"value":"funky"},4,5,null,7,8,9]', JSON.stringify(array));
47 array = [];
49 get value() { array[12] = 12; return "funky"; }
51 for (var i = 0; i < 10; i++) array[i] = i;
52 array[3] = funky;
53 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,9]', JSON.stringify(array));
55 array = [];
57 get value() { array[10000000] = 12; return "funky"; }
59 for (var i = 0; i < 10; i++) array[i] = i;
60 array[3] = funky;
61 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,9]', JSON.stringify(array));