diff --git a/modules/benchmarks/src/styling/styling_perf.spec.ts b/modules/benchmarks/src/styling/styling_perf.spec.ts index c0383242fc..7018627aac 100644 --- a/modules/benchmarks/src/styling/styling_perf.spec.ts +++ b/modules/benchmarks/src/styling/styling_perf.spec.ts @@ -45,6 +45,16 @@ describe('styling benchmark spec', () => { // Create benchmarks for each possible test scenario. SCENARIOS.forEach(({optionIndex, id}) => { describe(id, () => { + it('should run create benchmark', done => { + runStylingBenchmark(`styling.${id}.create`, { + work: () => create(), + prepare: () => { + selectScenario(optionIndex); + destroy(); + }, + }).then(done, done.fail); + }); + it('should run update benchmark', done => { runStylingBenchmark(`styling.${id}.update`, { work: () => update(), @@ -77,6 +87,10 @@ function create() { $('#create').click(); } +function destroy() { + $('#destroy').click(); +} + function update() { $('#update').click(); }