Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: LayoutTests/css3/filters/offscreen-filters-memory-usage.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
OLDNEW
« no previous file with comments | « LayoutTests/css3/filters/nested-filters.html ('k') | LayoutTests/css3/filters/reference-filter-update-after-remove.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698