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

Side by Side Diff: PerformanceTests/Layout/chapter-reflow-thrice.html

Issue 675983004: Allow performance tests to test full rendering performance (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: layoutOrFullyRender -> forceLayoutOrFullFrame Created 6 years, 1 month 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 <!-- 4 <!--
5 http://www.gutenberg.org/ebooks/41252 5 http://www.gutenberg.org/ebooks/41252
6 6
7 "This eBook is for the use of anyone anywhere at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use it under th e terms of the Project Gutenberg License included with this eBook or online at w ww.gutenberg.org." 7 "This eBook is for the use of anyone anywhere at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use it under th e terms of the Project Gutenberg License included with this eBook or online at w ww.gutenberg.org."
8 --> 8 -->
9 <title>Chapter reflow performance test: English prose thrice</title> 9 <title>Chapter reflow performance test: English prose thrice</title>
10 <script src="../resources/runner.js"></script> 10 <script src="../resources/runner.js"></script>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 </div> 66 </div>
67 <script> 67 <script>
68 var target = document.getElementById("target"); 68 var target = document.getElementById("target");
69 var style = target.style; 69 var style = target.style;
70 70
71 function test() { 71 function test() {
72 style.display = "block"; 72 style.display = "block";
73 73
74 style.fontSize = "10px"; 74 style.fontSize = "10px";
75 style.width = "280px"; 75 style.width = "280px";
76 target.offsetLeft; 76 PerfTestRunner.forceLayoutOrFullFrame();
77 style.width = "300px"; 77 style.width = "300px";
78 target.offsetLeft; 78 PerfTestRunner.forceLayoutOrFullFrame();
79 style.width = "290px"; 79 style.width = "290px";
80 target.offsetLeft; 80 PerfTestRunner.forceLayoutOrFullFrame();
81 81
82 style.fontSize = "12px"; 82 style.fontSize = "12px";
83 style.width = "280px"; 83 style.width = "280px";
84 target.offsetLeft; 84 PerfTestRunner.forceLayoutOrFullFrame();
85 style.width = "300px"; 85 style.width = "300px";
86 target.offsetLeft; 86 PerfTestRunner.forceLayoutOrFullFrame();
87 style.width = "290px"; 87 style.width = "290px";
88 target.offsetLeft; 88 PerfTestRunner.forceLayoutOrFullFrame();
89 89
90 style.display = "none"; 90 style.display = "none";
91 } 91 }
92 92
93 PerfTestRunner.measureRunsPerSecond({ 93 PerfTestRunner.measureRunsPerSecond({
94 description: "Measures performance of 3 layouts (using 2 different f ont-sizes) on a page containing English text.", 94 description: "Measures performance of 3 layouts (using 2 different f ont-sizes) on a page containing English text.",
95 run: test 95 run: test
96 }); 96 });
97 </script> 97 </script>
98 </body> 98 </body>
99 </html> 99 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/Layout/chapter-reflow-once-random.html ('k') | PerformanceTests/Layout/chapter-reflow-twice.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698