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

Side by Side Diff: PerformanceTests/ShadowDOM/shadow-style-share-attr-selectors.html

Issue 478003002: Fill in descriptions on relevant blink_perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: alancutter nits Created 6 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <style> 2 <style>
3 div { 3 div {
4 color: orange; 4 color: orange;
5 } 5 }
6 </style> 6 </style>
7 <script src="../resources/runner.js"></script> 7 <script src="../resources/runner.js"></script>
8 <script> 8 <script>
9 var listSize = 1000; 9 var listSize = 1000;
10 window.onload = function() { 10 window.onload = function() {
11 PerfTestRunner.measureTime({ 11 PerfTestRunner.measureTime({
12 description: "Measures performance of creating and rendering elements with shadow roots from templates (contains attribute selector styles).",
12 run: function() { 13 run: function() {
13 var list = document.querySelector('#list'); 14 var list = document.querySelector('#list');
14 var tmpl = document.querySelector("#tmpl"); 15 var tmpl = document.querySelector("#tmpl");
15 list.innerHTML = ''; 16 list.innerHTML = '';
16 var start = PerfTestRunner.now(); 17 var start = PerfTestRunner.now();
17 var i = 0; 18 var i = 0;
18 do { 19 do {
19 var host = document.createElement('div'); 20 var host = document.createElement('div');
20 var root = host.createShadowRoot(); 21 var root = host.createShadowRoot();
21 root.appendChild(tmpl.content.cloneNode(true)); 22 root.appendChild(tmpl.content.cloneNode(true));
(...skipping 21 matching lines...) Expand all
43 } 44 }
44 </style> 45 </style>
45 <div> 46 <div>
46 <div> 47 <div>
47 <div>item</div> 48 <div>item</div>
48 </div> 49 </div>
49 </div> 50 </div>
50 <content></content> 51 <content></content>
51 </template> 52 </template>
52 <section id="list"></section> 53 <section id="list"></section>
OLDNEW
« no previous file with comments | « PerformanceTests/ShadowDOM/shadow-style-share.html ('k') | PerformanceTests/ShadowDOM/shadow-style-share-media-query.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698