4 <title>Performance tester for non-overlaping
2D layers
</title>
10 border:
1px solid #AAA;
22 -webkit-transform: translateZ(
1px);
25 <script src=
"../resources/runner.js"></script>
30 function createTestFunction(count
) {
32 var container
= document
.createElement("div");
33 for(i
= 0; i
< count
; ++i
) {
34 var outer
= document
.createElement('div');
35 outer
.className
= 'container';
36 var inner
= document
.createElement('div');
37 inner
.className
= 'box';
39 // Use at least one 3D layer to trigger the overlap map checking.
40 inner
.className
+= " composited";
42 outer
.appendChild(inner
);
43 container
.appendChild(outer
);
45 document
.body
.appendChild(container
);
46 PerfTestRunner
.forceLayoutOrFullFrame();
50 PerfTestRunner
.measureTime({
51 description
: "Measures performance of non-overlapping 2D layers.",
52 run
: createTestFunction(5000)