2019-02-06 18:03:58 +01: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 {$} from 'protractor';
|
2020-01-13 18:57:06 +01:00
|
|
|
import {runTreeBenchmark} from './test_utils';
|
2019-02-06 18:03:58 +01:00
|
|
|
|
2020-01-13 18:57:06 +01:00
|
|
|
describe('tree benchmark detect changes perf', () => {
|
2019-02-06 18:03:58 +01:00
|
|
|
it('should work for detectChanges', async() => {
|
|
|
|
await runTreeBenchmark({
|
|
|
|
id: 'detectChanges',
|
|
|
|
work: () => $('#detectChanges').click(),
|
|
|
|
setup: () => $('#destroyDom').click()
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|