angular-docs-cn/modules/benchmarks/src/class_bindings/class_bindings.perf-spec.ts
2020-02-07 16:14:26 -08:00

39 lines
918 B
TypeScript

/**
* @license
* Copyright Google Inc. 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.io/license
*/
import {$, browser} from 'protractor';
import {runBenchmark} from '../../../e2e_util/perf_util';
describe('class bindings perf', () => {
it('should work for update', async() => {
browser.rootEl = '#root';
runBenchmark({
id: 'create',
url: '',
ignoreBrowserSynchronization: true,
params: [],
prepare: () => $('#destroy').click(),
work: () => $('#create').click()
});
});
it('should work for update', async() => {
browser.rootEl = '#root';
runBenchmark({
id: 'update',
url: '',
ignoreBrowserSynchronization: true,
params: [],
prepare: () => $('#create').click(),
work: () => $('#update').click()
});
});
});