Unregister from GCM when the only GCM app is removed
[chromium-blink-merge.git] / chrome / test / data / dromaeo / tests / dromaeo-object-array.html
blobd45fb36b71d0c14b95c2e7b309fbf6fedcf6a4f0
1 <html>
2 <head>
3 <script src="../htmlrunner.js"></script>
4 <script>
5 window.onload = function(){ startTest("dromaeo-object-array", 'bde4f5f4');
7 var ret = [], tmp, num = 500;
8 var i = 1024;
10 // TESTS: Array Building
12 test("Array Construction, []", function(){
13 for ( var j = 0; j < i * 15; j++ ) {
14 ret = [];
15 ret.length = i;
17 });
19 test("Array Construction, new Array()", function(){
20 for ( var j = 0; j < i * 10; j++ )
21 ret = new Array(i);
22 });
24 test("Array Construction, unshift", function(){
25 ret = [];
26 for ( var j = 0; j < i; j++ )
27 ret.unshift(j);
28 });
30 test("Array Construction, splice", function(){
31 ret = [];
32 for ( var j = 0; j < i; j++ )
33 ret.splice(0,0,j);
34 });
36 test("Array Deconstruction, shift", function(){
37 var a = ret.slice();
38 for ( var j = 0; j < i; j++ )
39 tmp = a.shift();
40 });
42 test("Array Deconstruction, splice", function(){
43 var a = ret.slice();
44 for ( var j = 0; j < i; j++ )
45 tmp = a.splice(0,1);
46 });
48 test("Array Construction, push", function(){
49 ret = [];
50 for ( var j = 0; j < i * 25; j++ )
51 ret.push(j);
52 });
54 test("Array Deconstruction, pop", function(){
55 var a = ret.slice();
56 for ( var j = 0; j < i * 25; j++ )
57 tmp = a.pop();
58 });
60 endTest(); };
61 </script>
62 </head>
63 <body></body>
64 </html>