| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 .offscreen_filter_area { | 5 .offscreen_filter_area { |
| 6 -webkit-filter: grayscale(1); | 6 -webkit-filter: grayscale(1); |
| 7 position: absolute; | 7 position: absolute; |
| 8 left: -3000px; | 8 left: -3000px; |
| 9 width: 2048px; | 9 width: 2048px; |
| 10 height: 2048px; | 10 height: 2048px; |
| 11 background-color: blue; | 11 background-color: blue; |
| 12 } | 12 } |
| 13 </style> | 13 </style> |
| 14 </head> | 14 </head> |
| 15 <body> | 15 <body> |
| 16 <p>This test passes if memory usage is not so hight that it crashes the
browser. It should be less than 100MB.</p> | 16 <p>This test passes if memory usage is not so hight that it crashes the
browser. It should be less than 100MB.</p> |
| 17 <script> | 17 <script> |
| 18 function createLayer() { | 18 function createLayer() { |
| 19 var el = document.createElement("div"); | 19 var el = document.createElement("div"); |
| 20 el.className = "offscreen_filter_area"; | 20 el.className = "offscreen_filter_area"; |
| 21 return el; | 21 return el; |
| 22 } | 22 } |
| 23 | 23 |
| 24 if (window.testRunner) | 24 if (window.testRunner) |
| 25 window.testRunner.dumpAsText(false); | 25 window.testRunner.dumpAsText(); |
| 26 for (var i = 0; i < 2000; ++i) | 26 for (var i = 0; i < 2000; ++i) |
| 27 document.body.appendChild(createLayer()); | 27 document.body.appendChild(createLayer()); |
| 28 </script> | 28 </script> |
| 29 </body> | 29 </body> |
| 30 </html> | 30 </html> |
| OLD | NEW |