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

Side by Side Diff: PerformanceTests/ShadowDOM/ChangingClassName.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 <script type="text/javascript" src="../resources/runner.js"></script> 4 <script type="text/javascript" src="../resources/runner.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 7
8 <div id="wrapper"> 8 <div id="wrapper">
9 <h2>Selected</h2> 9 <h2>Selected</h2>
10 <div id="selected"></div> 10 <div id="selected"></div>
(...skipping 29 matching lines...) Expand all
40 for (var i = 2; i < 100; ++i) { 40 for (var i = 2; i < 100; ++i) {
41 for (var j = 0; j < nDivs; ++j) { 41 for (var j = 0; j < nDivs; ++j) {
42 if (j % i == 0) { 42 if (j % i == 0) {
43 array[j].className = 'selected'; 43 array[j].className = 'selected';
44 selected.appendChild(array[j]); 44 selected.appendChild(array[j]);
45 } else { 45 } else {
46 array[j].className = ''; 46 array[j].className = '';
47 nonSelected.appendChild(array[j]); 47 nonSelected.appendChild(array[j]);
48 } 48 }
49 } 49 }
50 selected.offsetLeft; 50 PerfTestRunner.forceLayoutOrFullFrame();
51 nonSelected.offsetLeft;
52 } 51 }
53 } 52 }
54 53
55 function done() 54 function done()
56 { 55 {
57 wrapper.innerHTML = ''; 56 wrapper.innerHTML = '';
58 } 57 }
59 58
60 setup(); 59 setup();
61 60
62 PerfTestRunner.measureTime({ 61 PerfTestRunner.measureTime({
63 description: "Measure distribution and layout performance when className is changed (without ShadowDOM)", 62 description: "Measure distribution and layout performance when className is changed (without ShadowDOM)",
64 run: run, 63 run: run,
65 done: done 64 done: done
66 }); 65 });
67 </script> 66 </script>
68 </body> 67 </body>
69 </html> 68 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/SVG/SvgNestedUse.html ('k') | PerformanceTests/ShadowDOM/ChangingClassNameShadowDOM.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698