cleanup(tooling): move tooling to the browser platform and rename profile into instrumentation

BREAKING CHANGE

Before

import * as p from 'angular2/profile';
import * as t from 'angular2/tools';

After

import * as p from 'angular2/instrumentation';
import * as t from 'angular2/platform/browser';
This commit is contained in:
vsavkin
2015-11-23 10:18:04 -08:00
committed by Victor Savkin
parent 9ae171e0c8
commit 89eefcd7b5
54 changed files with 72 additions and 64 deletions
@@ -0,0 +1,27 @@
import {
afterEach,
beforeEach,
ddescribe,
describe,
expect,
iit,
inject,
it,
xit
} from 'angular2/testing_internal';
import {enableDebugTools, disableDebugTools} from 'angular2/platform/browser';
import {SpyComponentRef, callNgProfilerTimeChangeDetection} from './spies';
export function main() {
describe('profiler', () => {
beforeEach(() => { enableDebugTools((<any>new SpyComponentRef())); });
afterEach(() => { disableDebugTools(); });
it('should time change detection', () => { callNgProfilerTimeChangeDetection(); });
it('should time change detection with recording',
() => { callNgProfilerTimeChangeDetection({'record': true}); });
});
}