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

Side by Side Diff: PerformanceTests/ShadowDOM/shadow-style-share.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 = 100; 9 var listSize = 100;
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 class descendant 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 17 matching lines...) Expand all
39 } 40 }
40 </style> 41 </style>
41 <div class="foo"> 42 <div class="foo">
42 <div class="bar"> 43 <div class="bar">
43 <div class="foo bar baz">item</div> 44 <div class="foo bar baz">item</div>
44 </div> 45 </div>
45 </div> 46 </div>
46 <content></content> 47 <content></content>
47 </template> 48 </template>
48 <section id="list"></section> 49 <section id="list"></section>
OLDNEW
« no previous file with comments | « PerformanceTests/ShadowDOM/StyleSheetInsert.html ('k') | PerformanceTests/ShadowDOM/shadow-style-share-attr-selectors.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698