2019-10-23 15:30:32 +02:00
|
|
|
/**
|
|
|
|
* @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';
|
|
|
|
|
2020-01-16 12:23:36 +01:00
|
|
|
describe('class bindings perf', () => {
|
2019-10-23 15:30:32 +02:00
|
|
|
|
2020-02-04 13:53:57 -08:00
|
|
|
it('should work for update', async() => {
|
2019-10-23 15:30:32 +02:00
|
|
|
browser.rootEl = '#root';
|
|
|
|
runBenchmark({
|
|
|
|
id: 'create',
|
|
|
|
url: '',
|
|
|
|
ignoreBrowserSynchronization: true,
|
|
|
|
params: [],
|
|
|
|
prepare: () => $('#destroy').click(),
|
|
|
|
work: () => $('#create').click()
|
2020-02-04 13:53:57 -08:00
|
|
|
});
|
2019-10-23 15:30:32 +02:00
|
|
|
});
|
|
|
|
|
2020-02-04 13:53:57 -08:00
|
|
|
it('should work for update', async() => {
|
2019-10-23 15:30:32 +02:00
|
|
|
browser.rootEl = '#root';
|
|
|
|
runBenchmark({
|
|
|
|
id: 'update',
|
|
|
|
url: '',
|
|
|
|
ignoreBrowserSynchronization: true,
|
|
|
|
params: [],
|
|
|
|
prepare: () => $('#create').click(),
|
|
|
|
work: () => $('#update').click()
|
2020-02-04 13:53:57 -08:00
|
|
|
});
|
2019-10-23 15:30:32 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|