2019-02-06 17:03:58 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
2020-05-19 19:08:49 +00:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2019-02-06 17:03:58 +00:00
|
|
|
*
|
|
|
|
|
* 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 {$} from 'protractor';
|
2020-01-13 17:57:06 +00:00
|
|
|
import {runTreeBenchmark} from './test_utils';
|
2019-02-06 17:03:58 +00:00
|
|
|
|
2020-01-13 17:57:06 +00:00
|
|
|
describe('tree benchmark detect changes perf', () => {
|
2020-04-13 23:40:21 +00:00
|
|
|
it('should work for detectChanges', async () => {
|
2019-02-06 17:03:58 +00:00
|
|
|
await runTreeBenchmark({
|
|
|
|
|
id: 'detectChanges',
|
|
|
|
|
work: () => $('#detectChanges').click(),
|
2024-01-17 15:43:17 +00:00
|
|
|
setup: () => $('#destroyDom').click(),
|
2019-02-06 17:03:58 +00:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|