Skip to content

Commit f9ab977

Browse files
committed
fixup! test(benchmarks): Add performance tests for mat-table
1 parent 31ac819 commit f9ab977

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

test/benchmarks/material/table/table.perf-spec.ts

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ describe('checkbox overview performance benchmarks', () => {
2121
url: '',
2222
ignoreBrowserSynchronization: true,
2323
params: [],
24-
setup: async () => await $('#show').click(),
2524
prepare: async () => await $('#hide').click(),
2625
work: async () => await $('#show').click()
2726
});
@@ -33,10 +32,7 @@ describe('checkbox overview performance benchmarks', () => {
3332
url: '',
3433
ignoreBrowserSynchronization: true,
3534
params: [],
36-
setup: async () => {
37-
await $('#one-hundred-rows').click();
38-
await $('#show').click();
39-
},
35+
setup: async () => await $('#one-hundred-rows').click(),
4036
prepare: async () => await $('#hide').click(),
4137
work: async () => await $('#show').click()
4238
});
@@ -48,10 +44,7 @@ describe('checkbox overview performance benchmarks', () => {
4844
url: '',
4945
ignoreBrowserSynchronization: true,
5046
params: [],
51-
setup: async () => {
52-
await $('#one-thousand-rows').click();
53-
await $('#show').click();
54-
},
47+
setup: async () => await $('#one-thousand-rows').click(),
5548
prepare: async () => await $('#hide').click(),
5649
work: async () => await $('#show').click()
5750
});
@@ -77,10 +70,7 @@ describe('checkbox overview performance benchmarks', () => {
7770
url: '',
7871
ignoreBrowserSynchronization: true,
7972
params: [],
80-
setup: async () => {
81-
await $('#ten-cols').click();
82-
await $('#show').click();
83-
},
73+
setup: async () => await $('#ten-cols').click(),
8474
prepare: async () => await $('#hide').click(),
8575
work: async () => await $('#show').click()
8676
});
@@ -92,10 +82,7 @@ describe('checkbox overview performance benchmarks', () => {
9282
url: '',
9383
ignoreBrowserSynchronization: true,
9484
params: [],
95-
setup: async () => {
96-
await $('#twenty-cols').click();
97-
await $('#show').click();
98-
},
85+
setup: async () => await $('#twenty-cols').click(),
9986
prepare: async () => await $('#hide').click(),
10087
work: async () => await $('#show').click()
10188
});

0 commit comments

Comments
 (0)