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

Side by Side Diff: third_party/WebKit/PerformanceTests/Layout/chapter-reflow-once-random.html

Issue 1557953002: Revert unfinished work of "full-frame-measurement" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PerfPaint
Patch Set: Created 4 years, 11 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Chapter reflow performance test: random text</title> 4 <title>Chapter reflow performance test: random text</title>
5 <script src="../resources/runner.js"></script> 5 <script src="../resources/runner.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <pre id="log"></pre> 8 <pre id="log"></pre>
9 <div id="target" style="width: 300px; display: none;"> 9 <div id="target" style="width: 300px; display: none;">
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 var style = target.style; 61 var style = target.style;
62 62
63 var innerHTML = "<p>"; 63 var innerHTML = "<p>";
64 for (var i = 0; i < 5000; ++i) 64 for (var i = 0; i < 5000; ++i)
65 innerHTML += randomTextGenerator.generate() + " "; 65 innerHTML += randomTextGenerator.generate() + " ";
66 innerHTML += "</p>"; 66 innerHTML += "</p>";
67 target.innerHTML = innerHTML; 67 target.innerHTML = innerHTML;
68 68
69 style.display = "block"; 69 style.display = "block";
70 style.width = "280px"; 70 style.width = "280px";
71 PerfTestRunner.forceLayoutOrFullFrame(); 71 PerfTestRunner.forceLayout();
72 style.display = "none"; 72 style.display = "none";
73 } 73 }
74 74
75 PerfTestRunner.measureRunsPerSecond({ 75 PerfTestRunner.measureRunsPerSecond({
76 description: "Measures performance of 3 layouts (using 2 different f ont-sizes) on a page containing random text.", 76 description: "Measures performance of 3 layouts (using 2 different f ont-sizes) on a page containing random text.",
77 run: test 77 run: test
78 }); 78 });
79 </script> 79 </script>
80 </body> 80 </body>
81 </html> 81 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698