perf(ivy): add missing dom element in render3_function tree benchmark (#21476)

Adds a missing <tree> wrapper element in the render3_function tree
benchmark to make it more consistent with other perf tests.

PR Close #21476
This commit is contained in:
David-Emmanuel Divernois 2018-01-11 18:40:03 +01:00 committed by Alex Eagle
parent 63478d7a3c
commit 9b5a485243
1 changed files with 13 additions and 9 deletions

View File

@ -87,7 +87,7 @@ export class TreeComponent {
});
}
export class TreeFunction extends TreeComponent {
export class TreeFunction {
data: TreeNode = emptyTree;
/** @nocollapse */
@ -104,15 +104,19 @@ export class TreeFunction extends TreeComponent {
export function TreeTpl(ctx: TreeNode, cm: boolean) {
if (cm) {
E(0, 'span');
{ T(1); }
E(0, 'tree');
{
E(1, 'span');
{ T(2); }
e();
C(3);
C(4);
}
e();
C(2);
C(3);
}
s(0, 'background-color', b(ctx.depth % 2 ? '' : 'grey'));
t(1, b1(' ', ctx.value, ' '));
cR(2);
s(1, 'background-color', b(ctx.depth % 2 ? '' : 'grey'));
t(2, b1(' ', ctx.value, ' '));
cR(3);
{
if (ctx.left != null) {
let cm0 = V(0);
@ -121,7 +125,7 @@ export function TreeTpl(ctx: TreeNode, cm: boolean) {
}
}
cr();
cR(3);
cR(4);
{
if (ctx.right != null) {
let cm0 = V(0);