refactor(test): rename test_lib to testing

Old test_lib is now testing_internal
test_lib_public is now testing
This commit is contained in:
Julie Ralph 2015-10-13 00:29:13 -07:00
parent 5a504e6b78
commit f529236bfc
266 changed files with 407 additions and 279 deletions

View File

@ -43,7 +43,7 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
'angular2/web_worker/ui.ts',
'angular2/router.ts',
'angular2/http.ts',
'angular2/test_lib.ts'
'angular2/testing.ts'
];
readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../modules'));
@ -70,12 +70,12 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
modules: {'angular2/http': {namespace: 'ngHttp', id: 'angular2/http'}}
},
{
id: 'angular2/test_lib',
id: 'angular2/testing',
references: ['./angular2.d.ts'],
remapTypes: { Type: 'ng.Type', Binding: 'ng.Binding', Provider: 'ng.Provider', ViewMetadata: 'ng.ViewMetadata', Injector: 'ng.Injector',
Predicate: 'ng.Predicate', ElementRef: 'ng.ElementRef', DebugElement: 'ng.DebugElement',
InjectableReference: 'ng.InjectableReference', ComponentRef: 'ng.ComponentRef' },
modules: {'angular2/test_lib': {namespace: 'ngTestLib', id: 'angular2/test_lib'}}
modules: {'angular2/testing': {namespace: 'ngTesting', id: 'angular2/testing'}}
}
];
})

View File

@ -299,7 +299,7 @@ gulp.task('lint', ['build.tools'], function() {
"requireParameterType": true
}
};
return gulp.src(['modules/angular2/src/**/*.ts', '!modules/angular2/src/test_lib/**'])
return gulp.src(['modules/angular2/src/**/*.ts', '!modules/angular2/src/testing/**'])
.pipe(tslint({
tslint: require('tslint'),
configuration: tslintConfig,
@ -1044,8 +1044,8 @@ gulp.task('!bundle.testing', ['build.js.dev'], function() {
devBundleConfig.paths = merge(true, devBundleConfig.paths, {"*": "dist/js/dev/es5/*.js"});
return bundler.bundle(
devBundleConfig,
'angular2/test_lib + angular2/mock - angular2/angular2',
'./dist/js/bundle/test_lib.js',
'angular2/testing + angular2/mock - angular2/angular2',
'./dist/js/bundle/testing.js',
{ sourceMaps: true });
});

View File

@ -22,7 +22,7 @@ module.exports = function(config) {
'node_modules/zone.js/dist/jasmine-patch.js',
// Including systemjs because it defines `__eval`, which produces correct stack traces.
'modules/angular2/src/test_lib/shims_for_IE.js',
'modules/angular2/src/testing/shims_for_IE.js',
'node_modules/systemjs/dist/system.src.js',
{pattern: 'node_modules/@reactivex/rxjs/**', included: false, watched: false, served: true},
'node_modules/reflect-metadata/Reflect.js',

View File

@ -19,7 +19,7 @@
"bundles/typings/angular2/angular2.d.ts",
"bundles/typings/angular2/http.d.ts",
"bundles/typings/angular2/router.d.ts",
"bundles/typings/angular2/test_lib.d.ts"
"bundles/typings/angular2/testing.d.ts"
]
}
}

View File

@ -1,4 +1,4 @@
library test_lib.fake_async;
library testing.fake_async;
import 'dart:async' show runZoned, ZoneSpecification;
import 'package:quiver/testing/async.dart' as quiver;

View File

@ -1,4 +1,4 @@
library test_lib.lang_utils;
library testing.lang_utils;
import 'dart:mirrors';

View File

@ -1,4 +1,4 @@
library test_lib.matchers;
library testing.matchers;
import 'dart:async';

View File

@ -1,3 +1,3 @@
library angular2.test_lib.perf_util;
library angular2.testing.perf_util;
// empty as this file is node.js specific and should not be transpiled to dart

View File

@ -1,3 +1,3 @@
library angular2.test_lib_public;
library angular2.src.testing.testing;
// empty as this file is for external TS/js users and should not be transpiled to dart

View File

@ -10,7 +10,7 @@ import {createTestInjector, FunctionWithParamTokens, inject, injectAsync} from '
export {inject, injectAsync} from './test_injector';
export {expect} from './matchers';
export {expect, NgMatchers} from './matchers';
var _global: jasmine.GlobalPolluter = <any>(typeof window === 'undefined' ? global : window);

View File

@ -1,4 +1,4 @@
library test_lib.test_lib;
library angular2.src.testing.testing_internal;
import 'dart:async';

View File

@ -1,13 +1,5 @@
/**
* @module
* @description
* This module is used for writing tests for applications written in Angular.
*
* This module is not included in the `angular2` module; you must import the test module explicitly.
*
* @deprecated Please use testing instead
*/
export * from './src/test_lib/test_lib_public';
export * from './src/test_lib/test_component_builder';
export * from './src/test_lib/test_injector';
export * from './src/test_lib/fake_async';
export * from './src/test_lib/utils';
export * from './testing';

View File

@ -1,4 +1,4 @@
import {el, describe, it, iit, expect, inject, SpyObject} from 'angular2/test_lib';
import {el, describe, it, iit, expect, inject, SpyObject} from 'angular2/testing_internal';
import {AnimationBuilder} from 'angular2/src/animate/animation_builder';
import {DOM} from 'angular2/src/core/dom/dom_adapter';

View File

@ -9,7 +9,7 @@ import {
it,
xdescribe,
xit
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {isPresent, stringify} from 'angular2/src/core/facade/lang';
import {bootstrap} from 'angular2/bootstrap';
import {ApplicationRef} from 'angular2/src/core/application_ref';

View File

@ -9,7 +9,7 @@ import {
afterEach,
tick,
fakeAsync
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {
ChangeDetectorRef,

View File

@ -9,7 +9,7 @@ import {
afterEach,
tick,
fakeAsync
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {SpyChangeDispatcher} from '../spies';

View File

@ -1,4 +1,13 @@
import {ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach} from 'angular2/test_lib';
import {
ddescribe,
describe,
it,
iit,
xit,
expect,
beforeEach,
afterEach
} from 'angular2/testing_internal';
import {isBlank} from 'angular2/src/core/facade/lang';
import {coalesce} from 'angular2/src/core/change_detection/coalesce';

View File

@ -1,4 +1,13 @@
import {ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach} from 'angular2/test_lib';
import {
ddescribe,
describe,
it,
iit,
xit,
expect,
beforeEach,
afterEach
} from 'angular2/testing_internal';
import {
DefaultIterableDiffer,
DefaultIterableDifferFactory

View File

@ -1,4 +1,13 @@
import {ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach} from 'angular2/test_lib';
import {
ddescribe,
describe,
it,
iit,
xit,
expect,
beforeEach,
afterEach
} from 'angular2/testing_internal';
import {
DefaultKeyValueDiffer,
DefaultKeyValueDifferFactory

View File

@ -1,4 +1,13 @@
import {ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach} from 'angular2/test_lib';
import {
ddescribe,
describe,
it,
iit,
xit,
expect,
beforeEach,
afterEach
} from 'angular2/testing_internal';
import {SpyIterableDifferFactory} from '../../spies';
import {IterableDiffers} from 'angular2/src/core/change_detection/differs/iterable_differs';
import {Injector, provide} from 'angular2/core';

View File

@ -1,4 +1,4 @@
import {ddescribe, describe, it, expect} from 'angular2/test_lib';
import {ddescribe, describe, it, expect} from 'angular2/testing_internal';
import {Lexer, Token} from 'angular2/src/core/change_detection/parser/lexer';

View File

@ -1,4 +1,4 @@
import {ddescribe, describe, it, xit, iit, expect, beforeEach} from 'angular2/test_lib';
import {ddescribe, describe, it, xit, iit, expect, beforeEach} from 'angular2/testing_internal';
import {Locals} from 'angular2/src/core/change_detection/parser/locals';

View File

@ -1,4 +1,4 @@
import {ddescribe, describe, it, xit, iit, expect, beforeEach} from 'angular2/test_lib';
import {ddescribe, describe, it, xit, iit, expect, beforeEach} from 'angular2/testing_internal';
import {isBlank, isPresent} from 'angular2/src/core/facade/lang';
import {reflector} from 'angular2/src/core/reflection/reflection';
import {Parser} from 'angular2/src/core/change_detection/parser/parser';

View File

@ -8,7 +8,7 @@ import {
beforeEach,
afterEach,
inject
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {ProtoRecordBuilder} from 'angular2/src/core/change_detection/proto_change_detector';
import {BindingRecord} from 'angular2/src/core/change_detection/binding_record';

View File

@ -1,4 +1,13 @@
import {ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach} from 'angular2/test_lib';
import {
ddescribe,
describe,
it,
iit,
xit,
expect,
beforeEach,
afterEach
} from 'angular2/testing_internal';
import {isBlank} from 'angular2/src/core/facade/lang';
import {RecordType, ProtoRecord} from 'angular2/src/core/change_detection/proto_record';

View File

@ -11,7 +11,7 @@ import {
xit,
TestComponentBuilder,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {MapWrapper} from 'angular2/src/core/facade/collection';
import {
CompileDirectiveMetadata,

View File

@ -11,7 +11,7 @@ import {
AsyncTestCompleter,
inject,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {provide} from 'angular2/src/core/di';
import {CONST_EXPR, stringify} from 'angular2/src/core/facade/lang';

View File

@ -11,7 +11,7 @@ import {
AsyncTestCompleter,
inject,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {CONST_EXPR, stringify, isType, Type, isBlank} from 'angular2/src/core/facade/lang';
import {MapWrapper} from 'angular2/src/core/facade/collection';

View File

@ -10,7 +10,7 @@ import {
it,
xit,
TestComponentBuilder
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {
CompileDirectiveMetadata,

View File

@ -10,7 +10,7 @@ import {
afterEach,
AsyncTestCompleter,
inject
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {IS_DART} from '../../platform';
import {evalModule} from './eval_module';

View File

@ -1,4 +1,13 @@
import {ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach} from 'angular2/test_lib';
import {
ddescribe,
describe,
it,
iit,
xit,
expect,
beforeEach,
afterEach
} from 'angular2/testing_internal';
import {HtmlParser} from 'angular2/src/core/compiler/html_parser';
import {

View File

@ -11,7 +11,7 @@ import {
AsyncTestCompleter,
inject,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {Component, View, provide} from 'angular2/core';
import {PromiseWrapper} from 'angular2/src/core/facade/async';

View File

@ -11,7 +11,7 @@ import {
AsyncTestCompleter,
inject,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {stringify} from 'angular2/src/core/facade/lang';
import {RuntimeMetadataResolver} from 'angular2/src/core/compiler/runtime_metadata';

View File

@ -8,7 +8,7 @@ import {
inject,
it,
xit
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {IS_DART} from '../../../platform';
import {

View File

@ -1,4 +1,4 @@
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/test_lib';
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/testing_internal';
import {DOM} from 'angular2/src/core/dom/dom_adapter';
import {SelectorMatcher} from 'angular2/src/core/compiler/selector';
import {CssSelector} from 'angular2/src/core/compiler/selector';

View File

@ -1,7 +1,7 @@
library angular2.compiler.shadow_css_html5lib.test;
import 'package:angular2/src/core/dom/html_adapter.dart';
import 'package:angular2/src/test_lib/test_lib.dart' show testSetup;
import 'package:angular2/src/testing/testing_internal.dart' show testSetup;
import 'shadow_css_spec.dart' as shadow_css_spec_test;
void main() {

View File

@ -9,7 +9,7 @@ import {
el,
normalizeCSS,
browserDetection
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {ShadowCss} from 'angular2/src/core/compiler/shadow_css';
import {RegExpWrapper, StringWrapper, isPresent} from 'angular2/src/core/facade/lang';

View File

@ -10,7 +10,7 @@ import {
it,
xit,
TestComponentBuilder
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {SourceModule, moduleRef} from 'angular2/src/core/compiler/source_module';

View File

@ -11,7 +11,7 @@ import {
AsyncTestCompleter,
inject,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {provide} from 'angular2/src/core/di';
import {SpyXHR} from '../spies';
import {XHR} from 'angular2/src/core/compiler/xhr';

View File

@ -1,4 +1,4 @@
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/test_lib';
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/testing_internal';
import {resolveStyleUrls} from 'angular2/src/core/compiler/style_url_resolver';
import {UrlResolver} from 'angular2/src/core/compiler/url_resolver';

View File

@ -11,7 +11,7 @@ import {
AsyncTestCompleter,
inject,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
import {Type, isPresent, isBlank, stringify, isString} from 'angular2/src/core/facade/lang';

View File

@ -11,7 +11,7 @@ import {
xit,
TestComponentBuilder,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {
CompileTypeMetadata,

View File

@ -9,7 +9,7 @@ import {
afterEach,
inject,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {provide} from 'angular2/src/core/di';
import {TEST_PROVIDERS} from './test_bindings';

View File

@ -11,7 +11,7 @@ import {
AsyncTestCompleter,
inject,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {HtmlParser} from 'angular2/src/core/compiler/html_parser';
import {

View File

@ -1,4 +1,4 @@
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/test_lib';
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/testing_internal';
import {UrlResolver} from 'angular2/src/core/compiler/url_resolver';
export function main() {

View File

@ -10,7 +10,7 @@ import {
it,
xit,
TestComponentBuilder
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {IS_DART} from '../../platform';
import {escapeSingleQuoteString, escapeDoubleQuoteString} from 'angular2/src/core/compiler/util';

View File

@ -8,7 +8,7 @@ import {
inject,
it,
xit
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {XHRImpl} from 'angular2/src/core/compiler/xhr_impl';
import {PromiseWrapper} from 'angular2/src/core/facade/async';

View File

@ -8,7 +8,7 @@ import {
iit,
inject,
it,
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {MockXHR} from 'angular2/src/core/compiler/xhr_mock';
import {PromiseWrapper, Promise} from 'angular2/src/core/facade/async';
import {isPresent} from 'angular2/src/core/facade/lang';

View File

@ -12,7 +12,7 @@ import {
it,
xit,
TestComponentBuilder
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {DOM} from 'angular2/src/core/dom/dom_adapter';

View File

@ -12,7 +12,7 @@ import {
it,
xit,
TestComponentBuilder,
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {global} from 'angular2/src/core/facade/lang';
import {APP_VIEW_POOL_CAPACITY} from 'angular2/src/core/linker/view_pool';
import {provide, Component, Directive, Injectable, View} from 'angular2/core';

View File

@ -3,7 +3,7 @@
library angular2.test.di.binding_dart_spec;
import 'dart:mirrors';
import 'package:angular2/test_lib.dart';
import 'package:angular2/testing_internal.dart';
import 'package:angular2/core.dart';
main() {

View File

@ -8,7 +8,7 @@ import {
inject,
it,
xit,
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {bind, provide} from 'angular2/core';

View File

@ -8,7 +8,7 @@ import {
inject,
it,
xit,
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {forwardRef, resolveForwardRef} from 'angular2/core';
import {Type} from 'angular2/src/core/facade/lang';

View File

@ -1,7 +1,7 @@
/// This file contains tests that make sense only in Dart
library angular2.test.di.injector_dart_spec;
import 'package:angular2/test_lib.dart';
import 'package:angular2/testing_internal.dart';
import 'package:angular2/core.dart';
main() {

View File

@ -1,6 +1,6 @@
import {isBlank, stringify} from 'angular2/src/core/facade/lang';
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
import {describe, ddescribe, it, iit, expect, beforeEach} from 'angular2/test_lib';
import {describe, ddescribe, it, iit, expect, beforeEach} from 'angular2/testing_internal';
import {SpyDependencyProvider} from '../spies';
import {
Injector,

View File

@ -1,7 +1,7 @@
/// This file contains tests that make sense only in Dart
library angular2.test.di.key_dart_spec;
import 'package:angular2/test_lib.dart';
import 'package:angular2/testing_internal.dart';
import 'package:angular2/core.dart';
import 'package:angular2/src/core/di/key.dart';

View File

@ -1,4 +1,4 @@
import {describe, iit, it, expect, beforeEach} from 'angular2/test_lib';
import {describe, iit, it, expect, beforeEach} from 'angular2/testing_internal';
import {Key, KeyRegistry} from 'angular2/src/core/di/key';
export function main() {

View File

@ -11,7 +11,7 @@ import {
xit,
Log,
TestComponentBuilder
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {
OnChanges,

View File

@ -13,7 +13,7 @@ import {
inject,
it,
xit,
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {ListWrapper, StringMapWrapper} from 'angular2/src/core/facade/collection';
import {Component, View, NgFor, provide} from 'angular2/angular2';
import {NgClass} from 'angular2/src/core/directives/ng_class';

View File

@ -11,7 +11,7 @@ import {
inject,
it,
xit,
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {ListWrapper} from 'angular2/src/core/facade/collection';

View File

@ -10,7 +10,7 @@ import {
inject,
it,
xit,
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {DOM} from 'angular2/src/core/dom/dom_adapter';

View File

@ -12,7 +12,7 @@ import {
inject,
it,
xit,
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {StringMapWrapper} from 'angular2/src/core/facade/collection';

View File

@ -10,7 +10,7 @@ import {
inject,
it,
xit,
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {Component, View} from 'angular2/angular2';

View File

@ -10,7 +10,7 @@ import {
inject,
it,
xit,
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {DOM} from 'angular2/src/core/dom/dom_adapter';
import {Component, Directive, View} from 'angular2/core';
import {ElementRef} from 'angular2/src/core/linker/element_ref';

View File

@ -1,6 +1,6 @@
library angular2.test.directives.observable_list_iterable_diff_spec;
import 'package:angular2/test_lib.dart';
import 'package:angular2/testing_internal.dart';
import 'package:observe/observe.dart' show ObservableList;
import 'package:angular2/core.dart' show ObservableListDiffFactory, ChangeDetectorRef;

View File

@ -12,7 +12,7 @@ import {
beforeEachBindings,
SpyObject,
stringifyElement
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {DOM} from 'angular2/src/core/dom/dom_adapter';

View File

@ -9,7 +9,7 @@ import {
inject,
it,
xit
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
export function main() {
describe('Shim', () => {

View File

@ -1,7 +1,7 @@
/// This file contains tests that make sense only in Dart
library angular2.test.facade.async_dart_spec;
import 'package:angular2/test_lib.dart';
import 'package:angular2/testing_internal.dart';
import 'package:angular2/src/core/facade/async.dart';
class MockException implements Error {

View File

@ -10,7 +10,7 @@ import {
SpyObject,
AsyncTestCompleter,
inject
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {ObservableWrapper, EventEmitter, PromiseWrapper} from 'angular2/src/core/facade/async';

View File

@ -1,4 +1,4 @@
import {describe, it, expect, beforeEach, ddescribe, iit, xit} from 'angular2/test_lib';
import {describe, it, expect, beforeEach, ddescribe, iit, xit} from 'angular2/testing_internal';
import {ListWrapper, StringMapWrapper, MapWrapper} from 'angular2/src/core/facade/collection';

View File

@ -10,7 +10,7 @@ import {
xdescribe,
xit,
Log
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {
BaseException,
WrappedException,

View File

@ -1,4 +1,4 @@
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/test_lib';
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/testing_internal';
import {
isPresent,
RegExpWrapper,

View File

@ -12,7 +12,7 @@ import {
el,
AsyncTestCompleter,
inject
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {SpyNgControl, SpyValueAccessor} from '../spies';

View File

@ -8,7 +8,7 @@ import {
beforeEach,
afterEach,
el
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {Control, FormBuilder, Validators} from 'angular2/core';
export function main() {

View File

@ -16,7 +16,7 @@ import {
iit,
xit,
browserDetection
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {DOM} from 'angular2/src/core/dom/dom_adapter';
import {

View File

@ -12,7 +12,7 @@ import {
fakeAsync,
tick,
inject
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {ControlGroup, Control, ControlArray, Validators} from 'angular2/core';
import {ObservableWrapper} from 'angular2/src/core/facade/async';

View File

@ -8,7 +8,7 @@ import {
beforeEach,
afterEach,
el
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {ControlGroup, Control, Validators} from 'angular2/core';
export function main() {

View File

@ -9,7 +9,7 @@ import {
inject,
it,
xit
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {
bind,
provide,

View File

@ -12,7 +12,7 @@ import {
fakeAsync,
tick,
inject
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {SpyChangeDetector} from '../spies';
import {LifeCycle_} from "angular2/src/core/life_cycle/life_cycle";

View File

@ -11,7 +11,7 @@ import {
AsyncTestCompleter,
inject,
beforeEachBindings
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {Component, View, provide} from 'angular2/core';
import {SpyProtoViewFactory} from '../spies';

View File

@ -1,6 +1,6 @@
library angular2.test.core.compiler.directive_lifecycle_spec;
import 'package:angular2/test_lib.dart';
import 'package:angular2/testing_internal.dart';
import 'package:angular2/src/core/linker/directive_lifecycle_reflector.dart';
import 'package:angular2/src/core/linker/interfaces.dart';

View File

@ -11,7 +11,7 @@ import {
it,
SpyObject,
proxy
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {hasLifecycleHook} from 'angular2/src/core/linker/directive_lifecycle_reflector';
import {LifecycleHooks} from 'angular2/src/core/linker/interfaces';

View File

@ -1,4 +1,4 @@
import {ddescribe, describe, it, iit, expect, beforeEach} from 'angular2/test_lib';
import {ddescribe, describe, it, iit, expect, beforeEach} from 'angular2/testing_internal';
import {DirectiveResolver} from 'angular2/src/core/linker/directive_resolver';
import {
DirectiveMetadata,

View File

@ -14,7 +14,7 @@ import {
xit,
TestComponentBuilder,
RootTestComponent
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {OnDestroy} from 'angular2/lifecycle_hooks';
import {Injector, NgIf} from 'angular2/core';
@ -24,7 +24,7 @@ import {DynamicComponentLoader} from 'angular2/src/core/linker/dynamic_component
import {ElementRef} from 'angular2/src/core/linker/element_ref';
import {DOCUMENT} from 'angular2/src/core/render/render';
import {DOM} from 'angular2/src/core/dom/dom_adapter';
import {RootTestComponent_} from "angular2/src/test_lib/test_component_builder";
import {RootTestComponent_} from "angular2/src/testing/test_component_builder";
export function main() {
describe('DynamicComponentLoader', function() {

View File

@ -14,7 +14,7 @@ import {
AsyncTestCompleter,
el,
containsRegexp
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {SpyView, SpyElementRef} from '../spies';
import {isBlank, isPresent, stringify} from 'angular2/src/core/facade/lang';
import {

View File

@ -1,5 +1,5 @@
import {EventConfig} from 'angular2/src/core/linker/event_config';
import {ddescribe, describe, expect, it} from 'angular2/test_lib';
import {ddescribe, describe, expect, it} from 'angular2/testing_internal';
export function main() {
describe('EventConfig', () => {

View File

@ -4,7 +4,7 @@ library angular2.test.di.integration_dart_spec;
import 'package:angular2/angular2.dart';
import 'package:angular2/core.dart';
import 'package:angular2/src/core/debug.dart';
import 'package:angular2/test_lib.dart';
import 'package:angular2/testing_internal.dart';
import 'package:observe/observe.dart';
import 'package:angular2/src/core/change_detection/differs/default_iterable_differ.dart';
import 'package:angular2/src/core/change_detection/change_detection.dart';

View File

@ -19,7 +19,7 @@ import {
tick,
clearPendingTimers,
RootTestComponent
} from 'angular2/test_lib';
} from 'angular2/testing_internal';
import {DOM} from 'angular2/src/core/dom/dom_adapter';

Some files were not shown because too many files have changed in this diff Show More