angular/modules/benchmarks/src/class_bindings/class_bindings.perf-spec.ts
Joey Perrott 059fb06b9f build: migrate modules to use @rules_browsers protractor rules (#62342)
Use the protractor rules from `@rules_browsers` for the module directory.

PR Close #62342
2025-06-27 22:27:08 +00:00

36 lines
929 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {runBenchmark} from '../../../utilities/index';
import {$, browser} from 'protractor';
describe('class bindings perf', () => {
it('should work for update', async () => {
browser.rootEl = '#root';
await runBenchmark({
id: 'create',
url: '',
ignoreBrowserSynchronization: true,
params: [],
prepare: () => $('#destroy').click(),
work: () => $('#create').click(),
});
});
it('should work for update', async () => {
browser.rootEl = '#root';
await runBenchmark({
id: 'update',
url: '',
ignoreBrowserSynchronization: true,
params: [],
prepare: () => $('#create').click(),
work: () => $('#update').click(),
});
});
});