2 <!-- MOZ_INSERT_CONTENT_HOOK -->
3 <script src = runner.js
></script>
5 var onlyName
= 'Array Construction, push', onlyNum
= 32768;
8 startTest("object-array");
10 var ret
= [], tmp
, num
= 500;
12 for ( var i
= 16384; i
<= 131072; i
*= 2 ) (function(i
){
14 // TESTS: Array Building
16 test("Array Construction, []", i
, function(){
17 for ( var j
= 0; j
< num
; j
++ ) {
23 test("Array Construction, new Array()", i
, function(){
24 for ( var j
= 0; j
< num
; j
++ )
28 test("Array Construction, push", i
, function(){
30 for ( var j
= 0; j
< i
; j
++ )
36 test("Array Deconstruction, pop", i
, function(){
37 for ( var j
= 0; j
< i
; j
++ )
41 test("Array Construction, unshift", i
, function(){
43 for ( var j
= 0; j
< i
; j
++ )
47 test("Array Deconstruction, shift", i
, function(){
48 for ( var j
= 0; j
< i
; j
++ )
52 test("Array Construction, splice", i
, function(){
54 for ( var j
= 0; j
< i
; j
++ )
58 test("Array Deconstruction, splice", i
, function(){
59 for ( var j
= 0; j
< i
; j
++ )
60 tmp
= ret
.splice(0,1);
68 <body onload=
"thisTest()"></body></html>