OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
Jói
2013/06/28 10:49:15
Why did you delete this file?
hpjonsson
2013/06/28 11:27:32
It was AVG Virus protection that did it and it esc
| |
2 <!-- | |
3 This test checks to make sure that a prerendered page using excessive memory | |
4 is cancelled. | |
5 --> | |
6 <head> | |
7 <title>Prerender -- Excessive Memory Use</title> | |
8 </head> | |
9 <body> | |
10 Makes the renderer use an excessive amount of memory. | |
11 <script type="text/javascript"> | |
12 var string = ""; | |
13 while (string.length < 1024*1024) | |
14 string = string + "---------"; | |
15 | |
16 // This allows a sufficiently long string to be created with less copying | |
17 // and reallocation of data, speeding the test and hopefully eliminating | |
18 // flake. | |
19 var array = []; | |
20 // The maximum for the sake of this test is 30 MB, so allocate just a | |
21 // little more. | |
22 for (var i = 0; i < 31; ++i) | |
23 array[i] = string; | |
24 string = array.join(); | |
25 </script> | |
26 </body> | |
27 </html> | |
OLD | NEW |