@ -8,18 +8,25 @@
|
||||
|
||||
import {disableDebugTools, enableDebugTools} from '@angular/platform-browser';
|
||||
|
||||
import {SpyComponentRef, callNgProfilerTimeChangeDetection} from './spies';
|
||||
import {callNgProfilerTimeChangeDetection, SpyComponentRef} from './spies';
|
||||
|
||||
{
|
||||
describe('profiler', () => {
|
||||
if (isNode) return;
|
||||
beforeEach(() => { enableDebugTools((<any>new SpyComponentRef())); });
|
||||
beforeEach(() => {
|
||||
enableDebugTools((<any>new SpyComponentRef()));
|
||||
});
|
||||
|
||||
afterEach(() => { disableDebugTools(); });
|
||||
afterEach(() => {
|
||||
disableDebugTools();
|
||||
});
|
||||
|
||||
it('should time change detection', () => { callNgProfilerTimeChangeDetection(); });
|
||||
it('should time change detection', () => {
|
||||
callNgProfilerTimeChangeDetection();
|
||||
});
|
||||
|
||||
it('should time change detection with recording',
|
||||
() => { callNgProfilerTimeChangeDetection({'record': true}); });
|
||||
it('should time change detection with recording', () => {
|
||||
callNgProfilerTimeChangeDetection({'record': true});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user