Lines Matching refs:array1
42 array1 = new Array();
46 // this for loop populates array1 and array2 as follows:
47 // array1 = [0,1,2,3,4,....,size - 2,size - 1]
51 array1.push(i);
55 // the following for loop reverses the order of array1 so
57 for (i = array1.length; i > 0; i--)
59 array3 = array1.slice(1,i);
60 array1.splice(1,i-1);
61 array1 = array3.concat(array1);
64 // the following for loop reverses the order of array1
68 array1.push(array1.shift());
72 testcases[count++] = new TestCase( SECTION, "Array.push,pop,shift,unshift,slice,splice", true,String(array1) == String(array2));
73 array1.sort();
75 testcases[count++] = new TestCase( SECTION, "Array.sort", true,String(array1) == String(array2));