test boundary refactoring and main() invocation (0826)

This commit is contained in:
Jason Choi
2016-08-26 12:02:42 -07:00
parent 7c07bfff97
commit 23a942ddec
188 changed files with 618 additions and 315 deletions

View File

@ -11,7 +11,7 @@ import {Component} from '@angular/core';
import {ComponentFixture, TestBed, async} from '@angular/core/testing';
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {ListWrapper, StringMapWrapper} from '../../src/facade/collection';
import {ListWrapper, StringMapWrapper} from '@angular/facade/src/collection';
function detectChangesAndCheck(fixture: ComponentFixture<any>, classes: string) {
fixture.detectChanges();
@ -389,3 +389,5 @@ class TestComponent {
constructor() { this.setExpr.add('foo'); }
}
main();

View File

@ -12,7 +12,7 @@ import {TestBed, async} from '@angular/core/testing';
import {By} from '@angular/platform-browser/src/dom/debug/by';
import {expect} from '@angular/platform-browser/testing/matchers';
import {ListWrapper} from '../../src/facade/collection';
import {ListWrapper} from '@angular/facade/src/collection';
let thisArg: any;
@ -433,3 +433,5 @@ class ComponentUsingTestComponent {
items: any;
constructor() { this.items = [1, 2]; }
}
main();

View File

@ -183,3 +183,5 @@ class TestComponent {
this.functionCondition = function(s: any, n: any): boolean { return s == 'foo' && n == 1; };
}
}
main();

View File

@ -143,3 +143,5 @@ class TestLocalization extends NgLocalization {
class TestComponent {
switchValue: number = null;
}
main();

View File

@ -153,3 +153,5 @@ export function main() {
class TestComponent {
expr: any;
}
main();

View File

@ -158,3 +158,5 @@ class TestComponent {
this.when2 = null;
}
}
main();

View File

@ -163,3 +163,5 @@ class TestComponent {
currentTplRef: TemplateRef<any>;
context: any = {foo: 'bar'};
}
main();

View File

@ -62,3 +62,5 @@ class TestComponent {
text: string;
constructor() { this.text = 'foo'; }
}
main();

View File

@ -11,7 +11,7 @@ import {TestBed} from '@angular/core/testing';
import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
import {expect} from '@angular/platform-browser/testing/matchers';
import {NgLocaleLocalization, NgLocalization, getPluralCategory} from '../src/localization';
import {NgLocaleLocalization, NgLocalization, getPluralCategory} from '@angular/common/src/localization';
export function main() {
@ -156,3 +156,4 @@ class FrLocalization extends NgLocalization {
}
}
}
main();

View File

@ -12,8 +12,8 @@ import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect,
import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter';
import {browserDetection} from '@angular/platform-browser/testing/browser_util';
import {EventEmitter} from '../../src/facade/async';
import {isBlank} from '../../src/facade/lang';
import {EventEmitter} from '@angular/facade/src/async';
import {isBlank} from '@angular/facade/src/lang';
import {SpyChangeDetectorRef} from '../spies';
export function main() {
@ -216,3 +216,5 @@ export function main() {
});
});
}
main();

View File

@ -11,7 +11,7 @@ import {PipeResolver} from '@angular/compiler/src/pipe_resolver';
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal';
import {browserDetection} from '@angular/platform-browser/testing/browser_util';
import {DateWrapper} from '../../src/facade/lang';
import {DateWrapper} from '@angular/facade/src/lang';
export function main() {
describe('DatePipe', () => {
@ -104,3 +104,5 @@ export function main() {
}
});
}
main();

View File

@ -66,3 +66,5 @@ export function main() {
class TestLocalization extends NgLocalization {
getPluralCategory(value: number): string { return value > 1 && value < 6 ? 'many' : 'other'; }
}
main();

View File

@ -47,3 +47,5 @@ export function main() {
});
}
main();

View File

@ -11,7 +11,7 @@ import {Component} from '@angular/core';
import {TestBed, async} from '@angular/core/testing';
import {expect} from '@angular/platform-browser/testing/matchers';
import {Json, StringWrapper} from '../../src/facade/lang';
import {Json, StringWrapper} from '@angular/facade/src/lang';
export function main() {
describe('JsonPipe', () => {
@ -79,3 +79,5 @@ export function main() {
});
});
}
main();

View File

@ -40,3 +40,5 @@ export function main() {
});
}
main();

View File

@ -82,3 +82,5 @@ export function main() {
}
});
}
main();

View File

@ -111,3 +111,5 @@ export function main() {
});
});
}
main();

View File

@ -41,3 +41,5 @@ export function main() {
});
}
main();

View File

@ -8,7 +8,7 @@
import * as ts from 'typescript';
import {ReflectorHostContext} from '../src/reflector_host';
import {ReflectorHostContext} from '@angular/compiler-cli/src/reflector_host';
export type Entry = string | Directory;

View File

@ -9,7 +9,7 @@
import {beforeEach, ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal';
import * as ts from 'typescript';
import {ReflectorHost} from '../src/reflector_host';
import {ReflectorHost} from '@angular/compiler-cli/src/reflector_host';
import {Directory, Entry, MockCompilerHost, MockContext} from './mocks';

View File

@ -9,10 +9,10 @@
import {AnimationMetadata, animate, group, sequence, style, transition, trigger} from '@angular/core';
import {AsyncTestCompleter, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {StringMapWrapper} from '../../../platform-browser-dynamic/src/facade/collection';
import {AnimationCompiler, CompiledAnimationTriggerResult} from '../../src/animation/animation_compiler';
import {CompileAnimationEntryMetadata, CompileDirectiveMetadata, CompileTemplateMetadata, CompileTypeMetadata} from '../../src/compile_metadata';
import {CompileMetadataResolver} from '../../src/metadata_resolver';
import {StringMapWrapper} from '@angular/platform-browser-dynamic/src/facade/collection';
import {AnimationCompiler, CompiledAnimationTriggerResult} from '@angular/compiler/src/animation/animation_compiler';
import {CompileAnimationEntryMetadata, CompileDirectiveMetadata, CompileTemplateMetadata, CompileTypeMetadata} from '@angular/compiler/src/compile_metadata';
import {CompileMetadataResolver} from '@angular/compiler/src/metadata_resolver';
export function main() {
describe('RuntimeAnimationCompiler', () => {
@ -77,3 +77,5 @@ export function main() {
});
});
}
main();

View File

@ -10,11 +10,11 @@ import {AnimationAnimateMetadata, AnimationGroupMetadata, AnimationMetadata, Ani
import {AsyncTestCompleter, beforeEach, beforeEachProviders, ddescribe, describe, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {expect} from '@angular/platform-browser/testing/matchers';
import {FILL_STYLE_FLAG, flattenStyles} from '../../core_private';
import {AnimationAst, AnimationEntryAst, AnimationGroupAst, AnimationKeyframeAst, AnimationSequenceAst, AnimationStateTransitionAst, AnimationStepAst, AnimationStylesAst} from '../../src/animation/animation_ast';
import {parseAnimationEntry} from '../../src/animation/animation_parser';
import {StringMapWrapper} from '../../src/facade/collection';
import {CompileMetadataResolver} from '../../src/metadata_resolver';
import {FILL_STYLE_FLAG, flattenStyles} from '@angular/compiler/core_private';
import {AnimationAst, AnimationEntryAst, AnimationGroupAst, AnimationKeyframeAst, AnimationSequenceAst, AnimationStateTransitionAst, AnimationStepAst, AnimationStylesAst} from '@angular/compiler/src/animation/animation_ast';
import {parseAnimationEntry} from '@angular/compiler/src/animation/animation_parser';
import {StringMapWrapper} from '@angular/facade/src/collection';
import {CompileMetadataResolver} from '@angular/compiler/src/metadata_resolver';
export function main() {
describe('parseAnimationEntry', () => {
@ -416,3 +416,5 @@ export function main() {
});
});
}
main();

View File

@ -6,9 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../../core/testing/testing_internal';
import {CssLexer, CssLexerMode, CssScannerError, CssToken, CssTokenType} from '../../src/css_parser/css_lexer';
import {isPresent} from '../../src/facade/lang';
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal';
import {CssLexer, CssLexerMode, CssScannerError, CssToken, CssTokenType} from '@angular/compiler/src/css_parser/css_lexer';
import {isPresent} from '@angular/facade/src/lang';
export function main() {
function tokenize(
@ -375,3 +375,5 @@ export function main() {
});
});
}
main();

View File

@ -7,10 +7,10 @@
*/
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../../core/testing/testing_internal';
import {CssBlockAst, CssBlockDefinitionRuleAst, CssBlockRuleAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssSelectorRuleAst, CssStyleSheetAst, CssStyleValueAst} from '../../src/css_parser/css_ast';
import {BlockType, CssParseError, CssParser, CssToken, ParsedCssResult} from '../../src/css_parser/css_parser';
import {ParseLocation} from '../../src/parse_util';
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal';
import {CssBlockAst, CssBlockDefinitionRuleAst, CssBlockRuleAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssSelectorRuleAst, CssStyleSheetAst, CssStyleValueAst} from '@angular/compiler/src/css_parser/css_ast';
import {BlockType, CssParseError, CssParser, CssToken, ParsedCssResult} from '@angular/compiler/src/css_parser/css_parser';
import {ParseLocation} from '@angular/compiler/src/parse_util';
export function assertTokens(tokens: CssToken[], valuesArr: string[]) {
for (var i = 0; i < tokens.length; i++) {
@ -800,3 +800,5 @@ export function main() {
});
});
}
main();

View File

@ -7,10 +7,10 @@
*/
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../../core/testing/testing_internal';
import {CssAst, CssAstVisitor, CssAtRulePredicateAst, CssBlockAst, CssBlockDefinitionRuleAst, CssBlockRuleAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssPseudoSelectorAst, CssRuleAst, CssSelectorAst, CssSelectorRuleAst, CssSimpleSelectorAst, CssStyleSheetAst, CssStyleValueAst, CssStylesBlockAst, CssUnknownRuleAst, CssUnknownTokenListAst} from '../../src/css_parser/css_ast';
import {BlockType, CssParseError, CssParser, CssToken} from '../../src/css_parser/css_parser';
import {isPresent} from '../../src/facade/lang';
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal';
import {CssAst, CssAstVisitor, CssAtRulePredicateAst, CssBlockAst, CssBlockDefinitionRuleAst, CssBlockRuleAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssPseudoSelectorAst, CssRuleAst, CssSelectorAst, CssSelectorRuleAst, CssSimpleSelectorAst, CssStyleSheetAst, CssStyleValueAst, CssStylesBlockAst, CssUnknownRuleAst, CssUnknownTokenListAst} from '@angular/compiler/src/css_parser/css_ast';
import {BlockType, CssParseError, CssParser, CssToken} from '@angular/compiler/src/css_parser/css_parser';
import {isPresent} from '@angular/facade/src/lang';
function _assertTokens(tokens: CssToken[], valuesArr: string[]): void {
expect(tokens.length).toEqual(valuesArr.length);
@ -320,3 +320,5 @@ export function main() {
});
});
}
main();

View File

@ -141,3 +141,5 @@ class DirectiveWithAfterViewInitMethod {
class DirectiveWithAfterViewCheckedMethod {
ngAfterViewChecked() {}
}
main();

View File

@ -444,3 +444,5 @@ function programResourceLoaderSpy(spy: SpyResourceLoader, results: {[key: string
}
});
}
main();

View File

@ -9,8 +9,8 @@
import {Component, ComponentMetadata, Directive, Injector} from '@angular/core';
import {TestBed, inject} from '@angular/core/testing';
import {ViewMetadata} from '../core_private';
import {MockDirectiveResolver} from '../testing';
import {ViewMetadata} from '@angular/compiler/core_private';
import {MockDirectiveResolver} from '@angular/compiler/testing';
export function main() {
describe('MockDirectiveResolver', () => {
@ -95,3 +95,5 @@ class SomeComponent {
@Directive({selector: 'some-other-directive'})
class SomeOtherDirective {
}
main();

View File

@ -232,3 +232,5 @@ export function main() {
});
});
}
main();

View File

@ -246,3 +246,5 @@ export function main() {
});
});
}
main();

View File

@ -11,7 +11,7 @@ import {Lexer} from '@angular/compiler/src/expression_parser/lexer';
import {Parser, TemplateBindingParseResult} from '@angular/compiler/src/expression_parser/parser';
import {expect} from '@angular/platform-browser/testing/matchers';
import {isBlank, isPresent} from '../../src/facade/lang';
import {isBlank, isPresent} from '@angular/facade/src/lang';
import {unparse} from './unparser';
import {validate} from './validator';
@ -541,3 +541,5 @@ export function main() {
});
});
}
main();

View File

@ -6,9 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
import {AST, AstVisitor, Binary, BindingPipe, Chain, Conditional, EmptyExpr, FunctionCall, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralPrimitive, MethodCall, PrefixNot, PropertyRead, PropertyWrite, Quote, SafeMethodCall, SafePropertyRead} from '../../src/expression_parser/ast';
import {StringWrapper, isPresent, isString} from '../../src/facade/lang';
import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from '../../src/ml_parser/interpolation_config';
import {AST, AstVisitor, Binary, BindingPipe, Chain, Conditional, EmptyExpr, FunctionCall, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralPrimitive, MethodCall, PrefixNot, PropertyRead, PropertyWrite, Quote, SafeMethodCall, SafePropertyRead} from '@angular/compiler/src/expression_parser/ast';
import {StringWrapper, isPresent, isString} from '@angular/facade/src/lang';
import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from '@angular/compiler/src/ml_parser/interpolation_config';
class Unparser implements AstVisitor {
private static _quoteRegExp = /"/g;

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {AST, Binary, BindingPipe, Chain, Conditional, EmptyExpr, FunctionCall, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralPrimitive, MethodCall, ParseSpan, PrefixNot, PropertyRead, PropertyWrite, Quote, RecursiveAstVisitor, SafeMethodCall, SafePropertyRead} from '../../src/expression_parser/ast';
import {AST, Binary, BindingPipe, Chain, Conditional, EmptyExpr, FunctionCall, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralPrimitive, MethodCall, ParseSpan, PrefixNot, PropertyRead, PropertyWrite, Quote, RecursiveAstVisitor, SafeMethodCall, SafePropertyRead} from '@angular/compiler/src/expression_parser/ast';
import {unparse} from './unparser';

View File

@ -8,7 +8,7 @@
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {sha1} from '../../src/i18n/digest';
import {sha1} from '@angular/compiler/src/i18n/digest';
export function main(): void {
describe('sha1', () => {
@ -56,3 +56,5 @@ export function main(): void {
});
});
}
main();

View File

@ -8,13 +8,13 @@
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {digestMessage, serializeNodes as serializeI18nNodes} from '../../src/i18n/digest';
import {extractMessages, mergeTranslations} from '../../src/i18n/extractor_merger';
import * as i18n from '../../src/i18n/i18n_ast';
import {TranslationBundle} from '../../src/i18n/translation_bundle';
import * as html from '../../src/ml_parser/ast';
import {HtmlParser} from '../../src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '../../src/ml_parser/interpolation_config';
import {digestMessage, serializeNodes as serializeI18nNodes} from '@angular/compiler/src/i18n/digest';
import {extractMessages, mergeTranslations} from '@angular/compiler/src/i18n/extractor_merger';
import * as i18n from '@angular/compiler/src/i18n/i18n_ast';
import {TranslationBundle} from '@angular/compiler/src/i18n/translation_bundle';
import * as html from '@angular/compiler/src/ml_parser/ast';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '@angular/compiler/src/ml_parser/interpolation_config';
import {serializeNodes as serializeHtmlNodes} from '../ml_parser/ast_serializer_spec';
export function main() {
@ -443,3 +443,5 @@ function extractErrors(
return errors.map((e): [string, string] => [e.msg, e.span.toString()]);
}
main();

View File

@ -10,9 +10,9 @@ import {extractMessages} from '@angular/compiler/src/i18n/extractor_merger';
import {Message} from '@angular/compiler/src/i18n/i18n_ast';
import {ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal';
import {serializeNodes} from '../../src/i18n/digest';
import {HtmlParser} from '../../src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '../../src/ml_parser/interpolation_config';
import {serializeNodes} from '@angular/compiler/src/i18n/digest';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '@angular/compiler/src/ml_parser/interpolation_config';
export function main() {
describe('I18nParser', () => {
@ -332,3 +332,5 @@ function _extractMessages(
parseResult.rootNodes, DEFAULT_INTERPOLATION_CONFIG, implicitTags, implicitAttrs)
.messages;
}
main();

View File

@ -201,3 +201,5 @@ const XMB = `
</msg>
<msg id="93a30c67d4e6c9b37aecfe2ac0f2b5d366d7b520">it <ph name="START_BOLD_TEXT"><ex>&lt;b&gt;</ex></ph>should<ph name="CLOSE_BOLD_TEXT"><ex>&lt;/b&gt;</ex></ph> work</msg>
</messagebundle>`;
main();

View File

@ -10,10 +10,10 @@ import * as i18n from '@angular/compiler/src/i18n/i18n_ast';
import {Serializer} from '@angular/compiler/src/i18n/serializers/serializer';
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {serializeNodes} from '../../src/i18n/digest';
import {MessageBundle} from '../../src/i18n/message_bundle';
import {HtmlParser} from '../../src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '../../src/ml_parser/interpolation_config';
import {serializeNodes} from '@angular/compiler/src/i18n/digest';
import {MessageBundle} from '@angular/compiler/src/i18n/message_bundle';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '@angular/compiler/src/ml_parser/interpolation_config';
export function main(): void {
describe('MessageBundle', () => {
@ -56,3 +56,4 @@ class _TestSerializer implements Serializer {
function humanizeMessages(catalog: MessageBundle): string[] {
return catalog.write(new _TestSerializer()).split('//');
}
main();

View File

@ -8,7 +8,7 @@
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {PlaceholderRegistry} from '../../../src/i18n/serializers/placeholder';
import {PlaceholderRegistry} from '@angular/compiler/src/i18n/serializers/placeholder';
export function main(): void {
describe('PlaceholderRegistry', () => {
@ -90,3 +90,4 @@ export function main(): void {
});
});
}
main();

View File

@ -8,9 +8,9 @@
import {Xliff} from '@angular/compiler/src/i18n/serializers/xliff';
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {MessageBundle} from '../../../src/i18n/message_bundle';
import {HtmlParser} from '../../../src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '../../../src/ml_parser/interpolation_config';
import {MessageBundle} from '@angular/compiler/src/i18n/message_bundle';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '@angular/compiler/src/ml_parser/interpolation_config';
import {serializeNodes} from '../../ml_parser/ast_serializer_spec';
const HTML = `
@ -108,3 +108,4 @@ export function main(): void {
});
});
}
main();

View File

@ -9,9 +9,9 @@
import {Xmb} from '@angular/compiler/src/i18n/serializers/xmb';
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {MessageBundle} from '../../../src/i18n/message_bundle';
import {HtmlParser} from '../../../src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '../../../src/ml_parser/interpolation_config';
import {MessageBundle} from '@angular/compiler/src/i18n/message_bundle';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '@angular/compiler/src/ml_parser/interpolation_config';
export function main(): void {
describe('XMB serializer', () => {
@ -70,3 +70,5 @@ function toXmb(html: string): string {
return catalog.write(serializer);
}
main();

View File

@ -8,7 +8,7 @@
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import * as xml from '../../../src/i18n/serializers/xml_helper';
import * as xml from '@angular/compiler/src/i18n/serializers/xml_helper';
export function main(): void {
describe('XML helper', () => {
@ -47,3 +47,4 @@ export function main(): void {
});
}
main();

View File

@ -6,13 +6,13 @@
* found in the LICENSE file at https://angular.io/license
*/
import {escapeRegExp} from '@angular/core/src/facade/lang';
import {escapeRegExp} from '@angular/facade/src/lang';
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {MessageBundle} from '../../../src/i18n/message_bundle';
import {Xtb} from '../../../src/i18n/serializers/xtb';
import {HtmlParser} from '../../../src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '../../../src/ml_parser/interpolation_config';
import {MessageBundle} from '@angular/compiler/src/i18n/message_bundle';
import {Xtb} from '@angular/compiler/src/i18n/serializers/xtb';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
import {DEFAULT_INTERPOLATION_CONFIG} from '@angular/compiler/src/ml_parser/interpolation_config';
import {serializeNodes} from '../../ml_parser/ast_serializer_spec';
export function main(): void {
@ -192,3 +192,4 @@ export function main(): void {
() => { expect(() => { serializer.write({}); }).toThrowError(/Unsupported/); });
});
}
main();

View File

@ -7,7 +7,7 @@
*/
import {expect} from '@angular/platform-browser/testing/matchers';
import {MetadataOverrider} from '../testing/metadata_overrider';
import {MetadataOverrider} from '@angular/compiler/testing/metadata_overrider';
interface SomeMetadataType {
plainProp?: string;
@ -150,3 +150,5 @@ export function main() {
});
});
}
main();

View File

@ -11,8 +11,8 @@ import {AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit,
import {LIFECYCLE_HOOKS_VALUES} from '@angular/core/src/metadata/lifecycle_hooks';
import {TestBed, inject} from '@angular/core/testing';
import {stringify} from '../src/facade/lang';
import {CompileMetadataResolver} from '../src/metadata_resolver';
import {stringify} from '@angular/facade/src/lang';
import {CompileMetadataResolver} from '@angular/compiler/src/metadata_resolver';
import {MalformedStylesComponent} from './metadata_resolver_fixture';
@ -247,3 +247,5 @@ class ComponentWithInvalidInterpolation4 {
@Component({selector: 'someSelector', template: '', interpolation: ['&lbrace;', '}}']})
class ComponentWithInvalidInterpolation5 {
}
main();

View File

@ -6,9 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
import {beforeEach, ddescribe, describe, expect, it} from '../../../core/testing/testing_internal';
import * as html from '../../src/ml_parser/ast';
import {HtmlParser} from '../../src/ml_parser/html_parser';
import {beforeEach, ddescribe, describe, expect, it} from '@angular/core/testing/testing_internal';
import * as html from '@angular/compiler/src/ml_parser/ast';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
export function main() {
describe('Node serializer', () => {
@ -94,3 +94,5 @@ const serializerVisitor = new _SerializerVisitor();
export function serializeNodes(nodes: html.Node[]): string[] {
return nodes.map(node => node.visit(serializerVisitor, null));
}
main();

View File

@ -6,9 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
import * as html from '../../src/ml_parser/ast';
import {ParseTreeResult} from '../../src/ml_parser/html_parser';
import {ParseLocation} from '../../src/parse_util';
import * as html from '@angular/compiler/src/ml_parser/ast';
import {ParseTreeResult} from '@angular/compiler/src/ml_parser/html_parser';
import {ParseLocation} from '@angular/compiler/src/parse_util';
export function humanizeDom(parseResult: ParseTreeResult, addSourceSpan: boolean = false): any[] {
if (parseResult.errors.length > 0) {

View File

@ -6,11 +6,11 @@
* found in the LICENSE file at https://angular.io/license
*/
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../../core/testing/testing_internal';
import * as html from '../../src/ml_parser/ast';
import {HtmlParser, ParseTreeResult, TreeError} from '../../src/ml_parser/html_parser';
import {TokenType} from '../../src/ml_parser/lexer';
import {ParseError} from '../../src/parse_util';
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal';
import * as html from '@angular/compiler/src/ml_parser/ast';
import {HtmlParser, ParseTreeResult, TreeError} from '@angular/compiler/src/ml_parser/html_parser';
import {TokenType} from '@angular/compiler/src/ml_parser/lexer';
import {ParseError} from '@angular/compiler/src/parse_util';
import {humanizeDom, humanizeDomSourceSpans, humanizeLineColumn} from './ast_spec_utils';
@ -438,3 +438,5 @@ export function humanizeErrors(errors: ParseError[]): any[] {
return [(<any>e).tokenType, e.msg, humanizeLineColumn(e.span.start)];
});
}
main();

View File

@ -6,11 +6,11 @@
* found in the LICENSE file at https://angular.io/license
*/
import {ddescribe, describe, expect, iit, it} from '../../../core/testing/testing_internal';
import * as html from '../../src/ml_parser/ast';
import {HtmlParser} from '../../src/ml_parser/html_parser';
import {ExpansionResult, expandNodes} from '../../src/ml_parser/icu_ast_expander';
import {ParseError} from '../../src/parse_util';
import {ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal';
import * as html from '@angular/compiler/src/ml_parser/ast';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
import {ExpansionResult, expandNodes} from '@angular/compiler/src/ml_parser/icu_ast_expander';
import {ParseError} from '@angular/compiler/src/parse_util';
import {humanizeNodes} from './ast_spec_utils';
@ -106,3 +106,5 @@ export function main() {
function humanizeErrors(errors: ParseError[]): string[] {
return errors.map(error => error.msg);
}
main();

View File

@ -6,11 +6,11 @@
* found in the LICENSE file at https://angular.io/license
*/
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../../core/testing/testing_internal';
import {getHtmlTagDefinition} from '../../src/ml_parser/html_tags';
import {InterpolationConfig} from '../../src/ml_parser/interpolation_config';
import * as lex from '../../src/ml_parser/lexer';
import {ParseLocation, ParseSourceFile, ParseSourceSpan} from '../../src/parse_util';
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal';
import {getHtmlTagDefinition} from '@angular/compiler/src/ml_parser/html_tags';
import {InterpolationConfig} from '@angular/compiler/src/ml_parser/interpolation_config';
import * as lex from '@angular/compiler/src/ml_parser/lexer';
import {ParseLocation, ParseSourceFile, ParseSourceSpan} from '@angular/compiler/src/parse_util';
export function main() {
describe('HtmlLexer', () => {
@ -801,3 +801,5 @@ function tokenizeAndHumanizeErrors(input: string, tokenizeExpansionForms: boolea
return lex.tokenize(input, 'someUrl', getHtmlTagDefinition, tokenizeExpansionForms)
.errors.map(e => [<any>e.tokenType, e.msg, humanizeLineColumn(e.span.start)]);
}
main();

View File

@ -9,8 +9,8 @@
import {Injector, NgModule, NgModuleMetadata} from '@angular/core';
import {beforeEach, ddescribe, describe, expect, iit, inject, it} from '@angular/core/testing/testing_internal';
import {isBlank, stringify} from '../src/facade/lang';
import {MockNgModuleResolver} from '../testing';
import {isBlank, stringify} from '@angular/facade/src/lang';
import {MockNgModuleResolver} from '@angular/compiler/testing';
export function main() {
describe('MockNgModuleResolver', () => {
@ -44,3 +44,5 @@ class SomeOtherDirective {}
@NgModule({declarations: [SomeDirective]})
class SomeNgModule {
}
main();

View File

@ -8,7 +8,7 @@
import {NgModuleResolver} from '@angular/compiler/src/ng_module_resolver';
import {NgModule, NgModuleMetadata} from '@angular/core/src/metadata';
import {stringify} from '../src/facade/lang';
import {stringify} from '@angular/facade/src/lang';
class SomeClass1 {}
class SomeClass2 {}
@ -51,3 +51,5 @@ export function main() {
});
});
}
main();

View File

@ -31,3 +31,5 @@ export function main() {
});
}
main();

View File

@ -11,7 +11,7 @@ import {JavaScriptEmitter} from '@angular/compiler/src/output/js_emitter';
import * as o from '@angular/compiler/src/output/output_ast';
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
import {isBlank} from '../../src/facade/lang';
import {isBlank} from '@angular/facade/src/lang';
import {SimpleJsImportGenerator} from './output_emitter_util';
@ -279,3 +279,5 @@ export function main() {
});
});
}
main();

View File

@ -10,8 +10,8 @@
import * as o from '@angular/compiler/src/output/output_ast';
import {TypeScriptEmitter} from '@angular/compiler/src/output/ts_emitter';
import {print} from '../../src/facade/lang';
import {assetUrl} from '../../src/util';
import {print} from '@angular/facade/src/lang';
import {assetUrl} from '@angular/compiler/src/util';
function unimplemented(): any {
throw new Error('unimplemented');

View File

@ -9,8 +9,8 @@
// ATTENTION: This file will be overwritten with generated code by main()
import {JavaScriptEmitter} from '@angular/compiler/src/output/js_emitter';
import {print} from '../../src/facade/lang';
import {assetUrl} from '../../src/util';
import {print} from '@angular/facade/src/lang';
import {assetUrl} from '@angular/compiler/src/util';
import {SimpleJsImportGenerator, codegenExportsVars, codegenStmts} from './output_emitter_util';

View File

@ -192,3 +192,5 @@ export function main() {
});
});
}
main();

View File

@ -11,7 +11,7 @@ import * as o from '@angular/compiler/src/output/output_ast';
import {ImportGenerator} from '@angular/compiler/src/output/path_util';
import {assetUrl} from '@angular/compiler/src/util';
import {EventEmitter} from '@angular/core';
import {BaseError} from '@angular/core/src/facade/errors';
import {BaseError} from '@angular/facade/src/errors';
import {ViewType} from '@angular/core/src/linker/view_type';
export class ExternalClass {

View File

@ -11,7 +11,7 @@ import * as o from '@angular/compiler/src/output/output_ast';
import {TypeScriptEmitter} from '@angular/compiler/src/output/ts_emitter';
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
import {isBlank} from '../../src/facade/lang';
import {isBlank} from '@angular/facade/src/lang';
import {SimpleJsImportGenerator} from './output_emitter_util';
@ -328,3 +328,5 @@ export function main() {
});
});
}
main();

View File

@ -9,8 +9,8 @@
import {Injector, Pipe, PipeMetadata} from '@angular/core';
import {beforeEach, ddescribe, describe, expect, iit, inject, it} from '@angular/core/testing/testing_internal';
import {isBlank, stringify} from '../src/facade/lang';
import {MockPipeResolver} from '../testing';
import {isBlank, stringify} from '@angular/facade/src/lang';
import {MockPipeResolver} from '@angular/compiler/testing';
export function main() {
describe('MockPipeResolver', () => {
@ -37,3 +37,5 @@ export function main() {
@Pipe({name: 'somePipe'})
class SomePipe {
}
main();

View File

@ -8,7 +8,7 @@
import {MockResourceLoader} from '@angular/compiler/testing/resource_loader_mock';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it} from '@angular/core/testing/testing_internal';
import {isPresent} from '../src/facade/lang';
import {isPresent} from '@angular/facade/src/lang';
export function main() {
describe('MockResourceLoader', () => {
@ -113,3 +113,5 @@ export function main() {
});
});
}
main();

View File

@ -13,8 +13,8 @@ import {ComponentFixture, TestBed, async, fakeAsync, getTestBed, tick} from '@an
import {beforeEach, beforeEachProviders, ddescribe, describe, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {expect} from '@angular/platform-browser/testing/matchers';
import {ViewMetadata} from '../core_private';
import {stringify} from '../src/facade/lang';
import {ViewMetadata} from '@angular/compiler/core_private';
import {stringify} from '@angular/facade/src/lang';
import {SpyResourceLoader} from './spies';
@ -171,3 +171,5 @@ export function main() {
});
});
}
main();

View File

@ -11,8 +11,8 @@ import {CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, SecurityContext} from '@angula
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {browserDetection} from '@angular/platform-browser/testing/browser_util';
import {Element} from '../../src/ml_parser/ast';
import {HtmlParser} from '../../src/ml_parser/html_parser';
import {Element} from '@angular/compiler/src/ml_parser/ast';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
import {extractSchema} from './schema_extractor';
@ -115,3 +115,5 @@ export function main() {
});
}
main();

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {isPresent, isString} from '../../src/facade/lang';
import {isPresent, isString} from '@angular/facade/src/lang';
const SVG_PREFIX = ':svg:';

View File

@ -378,3 +378,5 @@ export function main() {
});
});
}
main();

View File

@ -10,7 +10,7 @@ import {CssRule, ShadowCss, processRules} from '@angular/compiler/src/shadow_css
import {beforeEach, ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal';
import {normalizeCSS} from '@angular/platform-browser/testing/browser_util';
import {StringWrapper, isPresent} from '../src/facade/lang';
import {StringWrapper, isPresent} from '@angular/facade/src/lang';
export function main() {
describe('ShadowCss', function() {
@ -241,3 +241,5 @@ export function main() {
});
});
}
main();

View File

@ -114,3 +114,5 @@ class FakeUrlResolver extends UrlResolver {
resolve(baseUrl: string, url: string): string { return 'fake_resolved_url'; }
}
main();

View File

@ -18,8 +18,8 @@ import {Console} from '@angular/core/src/console';
import {TestBed} from '@angular/core/testing';
import {afterEach, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
import {Identifiers, identifierToken} from '../../src/identifiers';
import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from '../../src/ml_parser/interpolation_config';
import {Identifiers, identifierToken} from '@angular/compiler/src/identifiers';
import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from '@angular/compiler/src/ml_parser/interpolation_config';
import {unparse} from '../expression_parser/unparser';
var someModuleUrl = 'package:someModule';
@ -1739,3 +1739,5 @@ class ArrayConsole implements Console {
log(msg: string) { this.logs.push(msg); }
warn(msg: string) { this.warnings.push(msg); }
}
main();

View File

@ -6,10 +6,10 @@
* found in the LICENSE file at https://angular.io/license
*/
import {afterEach, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../../core/testing/testing_internal';
import {Element} from '../../src/ml_parser/ast';
import {HtmlParser} from '../../src/ml_parser/html_parser';
import {PreparsedElement, PreparsedElementType, preparseElement} from '../../src/template_parser/template_preparser';
import {afterEach, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {Element} from '@angular/compiler/src/ml_parser/ast';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
import {PreparsedElement, PreparsedElementType, preparseElement} from '@angular/compiler/src/template_parser/template_preparser';
export function main() {
describe('preparseElement', () => {
@ -50,3 +50,5 @@ export function main() {
});
});
}
main();

View File

@ -125,3 +125,5 @@ export function main() {
});
});
}
main();

View File

@ -9,7 +9,7 @@
import {fakeAsync} from '@angular/core/testing/fake_async';
import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
import {SyncAsyncResult, splitAtColon} from '../src/util';
import {SyncAsyncResult, splitAtColon} from '@angular/compiler/src/util';
export function main() {
describe('util', () => {
@ -38,3 +38,5 @@ export function main() {
});
});
}
main();

View File

@ -9,11 +9,11 @@
import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter';
import {el} from '@angular/platform-browser/testing/browser_util';
import {ViewAnimationMap} from '../../src/animation/view_animation_map';
import {isPresent} from '../../src/facade/lang';
import {fakeAsync, flushMicrotasks} from '../../testing';
import {MockAnimationPlayer} from '../../testing/mock_animation_player';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../testing/testing_internal';
import {ViewAnimationMap} from '@angular/core/src/animation/view_animation_map';
import {isPresent} from '@angular/facade/src/lang';
import {fakeAsync, flushMicrotasks} from '@angular/core/testing';
import {MockAnimationPlayer} from '@angular/core/testing/mock_animation_player';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
export function main() {
describe('ActiveAnimationsPlayersMap', function() {
@ -72,3 +72,5 @@ export function main() {
});
});
}
main();

View File

@ -6,10 +6,10 @@
* found in the LICENSE file at https://angular.io/license
*/
import {AnimationGroupPlayer} from '../../src/animation/animation_group_player';
import {fakeAsync, flushMicrotasks} from '../../testing';
import {MockAnimationPlayer} from '../../testing/mock_animation_player';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../testing/testing_internal';
import {AnimationGroupPlayer} from '@angular/core/src/animation/animation_group_player';
import {fakeAsync, flushMicrotasks} from '@angular/core/testing';
import {MockAnimationPlayer} from '@angular/core/testing/mock_animation_player';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
export function main() {
describe('AnimationGroupPlayer', function() {
@ -195,3 +195,5 @@ export function main() {
}));
});
}
main();

View File

@ -11,16 +11,16 @@ import {AnimationDriver} from '@angular/platform-browser/src/dom/animation_drive
import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter';
import {MockAnimationDriver} from '@angular/platform-browser/testing/mock_animation_driver';
import {Component} from '../../index';
import {DEFAULT_STATE} from '../../src/animation/animation_constants';
import {AnimationKeyframe} from '../../src/animation/animation_keyframe';
import {AnimationPlayer} from '../../src/animation/animation_player';
import {AnimationStyles} from '../../src/animation/animation_styles';
import {AnimationTransitionEvent} from '../../src/animation/animation_transition_event';
import {AUTO_STYLE, animate, group, keyframes, sequence, state, style, transition, trigger} from '../../src/animation/metadata';
import {isPresent} from '../../src/facade/lang';
import {TestBed, fakeAsync, flushMicrotasks} from '../../testing';
import {MockAnimationPlayer} from '../../testing/mock_animation_player';
import {Component} from '@angular/core/index';
import {DEFAULT_STATE} from '@angular/core/src/animation/animation_constants';
import {AnimationKeyframe} from '@angular/core/src/animation/animation_keyframe';
import {AnimationPlayer} from '@angular/core/src/animation/animation_player';
import {AnimationStyles} from '@angular/core/src/animation/animation_styles';
import {AnimationTransitionEvent} from '@angular/core/src/animation/animation_transition_event';
import {AUTO_STYLE, animate, group, keyframes, sequence, state, style, transition, trigger} from '@angular/core/src/animation/metadata';
import {isPresent} from '@angular/facade/src/lang';
import {TestBed, fakeAsync, flushMicrotasks} from '@angular/core/testing';
import {MockAnimationPlayer} from '@angular/core/testing/mock_animation_player';
export function main() {
describe('jit', () => { declareTests({useJit: true}); });
@ -1716,3 +1716,5 @@ class BrokenDummyLoadingCmp {
exp = false;
callback = () => {};
}
main();

View File

@ -6,9 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
import {AnimationPlayer, NoOpAnimationPlayer} from '../../src/animation/animation_player';
import {fakeAsync, flushMicrotasks} from '../../testing';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../testing/testing_internal';
import {AnimationPlayer, NoOpAnimationPlayer} from '@angular/core/src/animation/animation_player';
import {fakeAsync, flushMicrotasks} from '@angular/core/testing';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
export function main() {
describe('NoOpAnimationPlayer', function() {
@ -43,3 +43,5 @@ export function main() {
}));
});
}
main();

View File

@ -6,11 +6,11 @@
* found in the LICENSE file at https://angular.io/license
*/
import {AnimationSequencePlayer} from '../../src/animation/animation_sequence_player';
import {isPresent} from '../../src/facade/lang';
import {fakeAsync, flushMicrotasks} from '../../testing';
import {MockAnimationPlayer} from '../../testing/mock_animation_player';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../testing/testing_internal';
import {AnimationSequencePlayer} from '@angular/core/src/animation/animation_sequence_player';
import {isPresent} from '@angular/facade/src/lang';
import {fakeAsync, flushMicrotasks} from '@angular/core/testing';
import {MockAnimationPlayer} from '@angular/core/testing/mock_animation_player';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
export function main() {
describe('AnimationSequencePlayer', function() {
@ -218,3 +218,5 @@ export function main() {
}));
});
}
main();

View File

@ -6,12 +6,12 @@
* found in the LICENSE file at https://angular.io/license
*/
import {FILL_STYLE_FLAG} from '../../src/animation/animation_constants';
import {AnimationKeyframe} from '../../src/animation/animation_keyframe';
import * as animationUtils from '../../src/animation/animation_style_util';
import {AnimationStyles} from '../../src/animation/animation_styles';
import {AUTO_STYLE} from '../../src/animation/metadata';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../testing/testing_internal';
import {FILL_STYLE_FLAG} from '@angular/core/src/animation/animation_constants';
import {AnimationKeyframe} from '@angular/core/src/animation/animation_keyframe';
import * as animationUtils from '@angular/core/src/animation/animation_style_util';
import {AnimationStyles} from '@angular/core/src/animation/animation_styles';
import {AUTO_STYLE} from '@angular/core/src/animation/metadata';
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
export function main() {
describe('Animation Style Utils', function() {
@ -145,3 +145,5 @@ export function main() {
});
});
}
main();

View File

@ -5,8 +5,8 @@
* 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 {APP_INITIALIZER, ApplicationInitStatus} from '../src/application_init';
import {TestBed, async, inject, withModule} from '../testing';
import {APP_INITIALIZER, ApplicationInitStatus} from '@angular/core/src/application_init';
import {TestBed, async, inject, withModule} from '@angular/core/testing';
export function main() {
describe('ApplicationInitStatus', () => {
@ -49,3 +49,5 @@ export function main() {
});
});
}
main();

View File

@ -7,7 +7,7 @@
*/
import {LOCALE_ID} from '@angular/core';
import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../testing/testing_internal';
import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
export function main() {
describe('Application module', () => {
@ -15,3 +15,4 @@ export function main() {
inject([LOCALE_ID], (defaultLocale: string) => { expect(defaultLocale).toEqual('en-US'); }));
});
}
main();

View File

@ -15,7 +15,7 @@ import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter';
import {DOCUMENT} from '@angular/platform-browser/src/dom/dom_tokens';
import {expect} from '@angular/platform-browser/testing/matchers';
import {TestBed, async, inject, withModule} from '../testing';
import {TestBed, async, inject, withModule} from '@angular/core/testing';
import {SpyChangeDetectorRef} from './spies';
@ -270,3 +270,5 @@ class MockConsole {
log(s: any): void { this.res.push(s); }
error(s: any): void { this.res.push(s); }
}
main();

View File

@ -55,3 +55,5 @@ export function main() {
});
});
}
main();

View File

@ -9,8 +9,8 @@
import {DefaultIterableDiffer, DefaultIterableDifferFactory} from '@angular/core/src/change_detection/differs/default_iterable_differ';
import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal';
import {ListWrapper} from '../../../src/facade/collection';
import {NumberWrapper} from '../../../src/facade/lang';
import {ListWrapper} from '@angular/facade/src/collection';
import {NumberWrapper} from '@angular/facade/src/lang';
import {TestIterable} from '../../change_detection/iterable';
import {iterableChangesAsString} from '../../change_detection/util';
@ -595,3 +595,5 @@ export function main() {
});
}
main();

View File

@ -227,3 +227,5 @@ export function main() {
});
});
}
main();

View File

@ -69,3 +69,5 @@ export function main() {
});
});
}
main();

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {getSymbolIterator} from '../../src/facade/lang';
import {getSymbolIterator} from '@angular/facade/src/lang';
export class TestIterable {
list: number[];

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {isBlank} from '../../src/facade/lang';
import {isBlank} from '@angular/facade/src/lang';
export function iterableChangesAsString(
{collection = [] as any, previous = [] as any, additions = [] as any, moves = [] as any,

View File

@ -322,3 +322,5 @@ export function main() {
});
}
main();

View File

@ -14,7 +14,7 @@ import {By} from '@angular/platform-browser/src/dom/debug/by';
import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter';
import {expect} from '@angular/platform-browser/testing/matchers';
import {EventEmitter} from '../../src/facade/async';
import {EventEmitter} from '@angular/facade/src/async';
@Injectable()
class Logger {
@ -358,3 +358,5 @@ export function main() {
});
});
}
main();

View File

@ -13,3 +13,5 @@ export function main() {
it('is enabled in our tests by default', () => { expect(isDevMode()).toBe(true); });
});
}
main();

View File

@ -19,3 +19,5 @@ export function main() {
});
});
}
main();

View File

@ -25,3 +25,5 @@ export function main() {
() => { expect(Injector.NULL.get('someToken', 'notFound')).toEqual('notFound'); });
});
}
main();

View File

@ -12,7 +12,7 @@ import {ReflectiveInjectorDynamicStrategy, ReflectiveInjectorInlineStrategy, Ref
import {ResolvedReflectiveProvider_} from '@angular/core/src/di/reflective_provider';
import {expect} from '@angular/platform-browser/testing/matchers';
import {isBlank, isPresent, stringify} from '../../src/facade/lang';
import {isBlank, isPresent, stringify} from '@angular/facade/src/lang';
class CustomDependencyMetadata extends DependencyMetadata {}
@ -588,3 +588,5 @@ export function main() {
});
});
}
main();

View File

@ -25,3 +25,5 @@ export function main() {
});
}
main();

View File

@ -84,3 +84,5 @@ class LifecycleCmp implements OnChanges,
@Component({selector: 'my-comp'})
class MyComp5 {
}
main();

View File

@ -101,3 +101,5 @@ export function main() {
});
}
main();

View File

@ -25,3 +25,5 @@ export function main() {
function identity(a: any /** TODO #9100 */) {
return a;
}
main();

View File

@ -6,11 +6,11 @@
* found in the LICENSE file at https://angular.io/license
*/
import {WrappedError} from '@angular/core/src/facade/errors';
import {WrappedError} from '@angular/facade/src/errors';
import {DebugContext} from '@angular/core/src/linker/debug_context';
import {ViewWrappedError} from '@angular/core/src/linker/errors';
import {ErrorHandler} from '../src/error_handler';
import {ErrorHandler} from '@angular/core/src/error_handler';
class MockConsole {
res: any[] = [];
@ -99,3 +99,5 @@ Context`);
});
});
}
main();

View File

@ -8,7 +8,7 @@
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
import {Observable} from '../../src/facade/async';
import {Observable} from '@angular/facade/src/async';
export function main() {
describe('Observable', () => {
@ -62,3 +62,5 @@ export function main() {
});
});
}
main();

View File

@ -10,7 +10,7 @@ import {discardPeriodicTasks, fakeAsync, flushMicrotasks, tick} from '@angular/c
import {Log, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
import {expect} from '@angular/platform-browser/testing/matchers';
import {Parser} from '../../compiler/src/expression_parser/parser';
import {Parser} from '@angular/compiler/src/expression_parser/parser';
const resolvedPromise = Promise.resolve(null);
const ProxyZoneSpec: {assertPresent: () => void} = (Zone as any)['ProxyZoneSpec'];
@ -316,3 +316,5 @@ export function main() {
});
});
}
main();

View File

@ -64,3 +64,5 @@ class ModuleFrame {
class Lock {
name: string = 'lock';
}
main();

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