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

Side by Side Diff: third_party/WebKit/PerformanceTests/ShadowDOM/MultipleInsertionPoints.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 <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 <div id="host"></div> 9 <div id="host"></div>
10 </div> 10 </div>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 function run() 44 function run()
45 { 45 {
46 var host = document.getElementById('host'); 46 var host = document.getElementById('host');
47 var nLoops = window.nLoops; 47 var nLoops = window.nLoops;
48 48
49 var div = document.createElement('div'); 49 var div = document.createElement('div');
50 for (var i = 0; i < nLoops; ++i) { 50 for (var i = 0; i < nLoops; ++i) {
51 host.appendChild(div); 51 host.appendChild(div);
52 host.removeChild(div); 52 host.removeChild(div);
53 PerfTestRunner.forceLayoutOrFullFrame(); 53 PerfTestRunner.forceLayout();
54 } 54 }
55 } 55 }
56 56
57 function done() 57 function done()
58 { 58 {
59 wrapper.innerHTML = ''; 59 wrapper.innerHTML = '';
60 } 60 }
61 61
62 62
63 setup(); 63 setup();
64 64
65 PerfTestRunner.measureTime({ 65 PerfTestRunner.measureTime({
66 description: "Measure Distribution and Layout time in a case there are multi ple InsertionPoints", 66 description: "Measure Distribution and Layout time in a case there are multi ple InsertionPoints",
67 run: run, 67 run: run,
68 done: done 68 done: done
69 }); 69 });
70 </script> 70 </script>
71 </body> 71 </body>
72 </html> 72 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698