4 <script type=
"text/javascript" src=
"../resources/runner.js"></script>
13 var numDivsInHost
= 100;
18 var nDivs
= numDivsInHost
;
20 for (var i
= 0; i
< nDivs
; ++i
) {
21 var div
= document
.createElement('div');
22 div
.appendChild(document
.createTextNode('div' + i
));
24 div
.className
= 'selected';
25 host
.appendChild(div
);
28 var shadowRoot
= host
.createShadowRoot();
29 shadowRoot
.innerHTML
= '<div id="host2"><shadow><content></content></shadow></div>';
31 var host2
= shadowRoot
.getElementById('host2');
32 var shadowRoot2
= host2
.createShadowRoot();
33 shadowRoot2
.innerHTML
= '<content select=".selected"></content>';
38 var host
= document
.getElementById('host');
39 var nLoops
= window
.nLoops
;
41 var div
= document
.createElement('div');
42 for (var i
= 0; i
< nLoops
; ++i
) {
43 host
.appendChild(div
);
44 host
.removeChild(div
);
45 PerfTestRunner
.forceLayoutOrFullFrame();
51 wrapper
.innerHTML
= '';
56 PerfTestRunner
.measureTime({
57 description
: "Measure performance of shadow reprojection and distribution",