@ -1,15 +1,4 @@
|
||||
import {
|
||||
AsyncTestCompleter,
|
||||
beforeEach,
|
||||
ddescribe,
|
||||
describe,
|
||||
expect,
|
||||
iit,
|
||||
inject,
|
||||
it,
|
||||
xdescribe,
|
||||
xit
|
||||
} from 'angular2/testing_internal';
|
||||
import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from 'angular2/testing_internal';
|
||||
import {IS_DART, RegExpWrapper, StringWrapper} from 'angular2/src/facade/lang';
|
||||
import {getSymbolsFromLibrary} from './symbol_inspector/symbol_inspector';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
@ -91,136 +80,58 @@ var NG_COMMON = [
|
||||
];
|
||||
|
||||
var NG_COMPILER = [
|
||||
"TemplateAst:dart",
|
||||
"TemplateAstVisitor:dart",
|
||||
"DEFAULT_PACKAGE_URL_PROVIDER",
|
||||
"UrlResolver",
|
||||
"getUrlScheme",
|
||||
"AttrAst",
|
||||
"BoundDirectivePropertyAst",
|
||||
"BoundElementPropertyAst",
|
||||
"BoundEventAst",
|
||||
"BoundTextAst",
|
||||
"COMPILER_PROVIDERS",
|
||||
"CompileDirectiveMetadata",
|
||||
"CompileTemplateMetadata",
|
||||
"CompileTypeMetadata",
|
||||
"DirectiveAst",
|
||||
"ElementAst",
|
||||
"EmbeddedTemplateAst",
|
||||
"NgContentAst",
|
||||
"PLATFORM_DIRECTIVES",
|
||||
"PLATFORM_PIPES",
|
||||
"PropertyBindingType",
|
||||
"SourceModule",
|
||||
"SourceWithImports",
|
||||
"TEMPLATE_TRANSFORMS",
|
||||
"TemplateCompiler",
|
||||
"TextAst",
|
||||
"VariableAst",
|
||||
"XHR",
|
||||
"createWithoutPackagePrefix",
|
||||
"templateVisitAll"
|
||||
'TemplateAst:dart',
|
||||
'TemplateAstVisitor:dart',
|
||||
'DEFAULT_PACKAGE_URL_PROVIDER',
|
||||
'UrlResolver',
|
||||
'getUrlScheme',
|
||||
'AttrAst',
|
||||
'BoundDirectivePropertyAst',
|
||||
'BoundElementPropertyAst',
|
||||
'BoundEventAst',
|
||||
'BoundTextAst',
|
||||
'COMPILER_PROVIDERS',
|
||||
'CompileDirectiveMetadata',
|
||||
'CompileTemplateMetadata',
|
||||
'CompileTypeMetadata',
|
||||
'DirectiveAst',
|
||||
'ElementAst',
|
||||
'EmbeddedTemplateAst',
|
||||
'NgContentAst',
|
||||
'PLATFORM_DIRECTIVES',
|
||||
'PLATFORM_PIPES',
|
||||
'PropertyBindingType',
|
||||
'SourceModule',
|
||||
'SourceWithImports',
|
||||
'TEMPLATE_TRANSFORMS',
|
||||
'TemplateCompiler',
|
||||
'TextAst',
|
||||
'VariableAst',
|
||||
'XHR',
|
||||
'createWithoutPackagePrefix',
|
||||
'templateVisitAll'
|
||||
];
|
||||
|
||||
var NG_CORE = [
|
||||
'APP_COMPONENT',
|
||||
'APP_INITIALIZER',
|
||||
'APP_ID',
|
||||
'AngularEntrypoint:dart',
|
||||
'AbstractProviderError',
|
||||
'AppViewManager',
|
||||
'ApplicationRef',
|
||||
'APPLICATION_COMMON_PROVIDERS',
|
||||
'Attribute',
|
||||
'AttributeMetadata',
|
||||
'Binding',
|
||||
'Provider',
|
||||
'ProviderBuilder',
|
||||
'PLATFORM_DIRECTIVES',
|
||||
"CollectionChangeRecord",
|
||||
'ChangeDetectionError',
|
||||
'ChangeDetectionStrategy',
|
||||
'ChangeDetectorRef',
|
||||
'Class:js',
|
||||
'Compiler',
|
||||
'Component',
|
||||
'ComponentMetadata',
|
||||
'ComponentRef',
|
||||
'ContentChild',
|
||||
'ContentChildMetadata',
|
||||
'ContentChildren',
|
||||
'ContentChildrenMetadata',
|
||||
'CyclicDependencyError',
|
||||
'PLATFORM_PIPES',
|
||||
'DebugNode',
|
||||
'DebugElement',
|
||||
'Dependency',
|
||||
'DependencyMetadata',
|
||||
'Directive',
|
||||
'DirectiveMetadata',
|
||||
'DirectiveResolver',
|
||||
'DynamicComponentLoader',
|
||||
'ElementRef',
|
||||
'Output',
|
||||
'EmbeddedViewRef',
|
||||
'EventEmitter',
|
||||
'ExceptionHandler',
|
||||
'OutputMetadata',
|
||||
'enableProdMode',
|
||||
'ExpressionChangedAfterItHasBeenCheckedException',
|
||||
'Host',
|
||||
'HostBinding',
|
||||
'HostBindingMetadata',
|
||||
'HostListener',
|
||||
'HostListenerMetadata',
|
||||
'HostMetadata',
|
||||
'HostViewFactoryRef',
|
||||
'Inject',
|
||||
'InjectMetadata',
|
||||
'Injectable',
|
||||
'InjectableMetadata',
|
||||
'Injector',
|
||||
'InstantiationError',
|
||||
'InvalidProviderError',
|
||||
'IterableDiffers',
|
||||
'Key',
|
||||
'KeyValueChangeRecord',
|
||||
'KeyValueDiffers',
|
||||
'NgZone',
|
||||
'NgZoneError',
|
||||
'NoAnnotationError',
|
||||
'NoProviderError',
|
||||
'OpaqueToken',
|
||||
'Optional',
|
||||
'OptionalMetadata',
|
||||
'OutOfBoundsError',
|
||||
'Pipe',
|
||||
'PipeMetadata',
|
||||
'PlatformRef',
|
||||
'Input',
|
||||
'InputMetadata',
|
||||
'Query',
|
||||
'QueryList',
|
||||
'QueryMetadata',
|
||||
'Renderer',
|
||||
'RootRenderer',
|
||||
'RenderComponentType',
|
||||
'ResolvedBinding:dart',
|
||||
'ResolvedProvider:dart',
|
||||
'ResolvedFactory',
|
||||
'Self',
|
||||
'SelfMetadata',
|
||||
'SkipSelf',
|
||||
'SkipSelfMetadata',
|
||||
'SimpleChange',
|
||||
'TemplateRef',
|
||||
'Testability',
|
||||
'TestabilityRegistry',
|
||||
'GetTestability:dart',
|
||||
'setTestabilityGetter',
|
||||
'Type',
|
||||
'PACKAGE_ROOT_URL',
|
||||
'APP_COMPONENT', 'APP_INITIALIZER', 'APP_ID', 'AngularEntrypoint:dart', 'AbstractProviderError',
|
||||
'AppViewManager', 'ApplicationRef', 'APPLICATION_COMMON_PROVIDERS', 'Attribute',
|
||||
'AttributeMetadata', 'Binding', 'Provider', 'ProviderBuilder', 'PLATFORM_DIRECTIVES',
|
||||
'CollectionChangeRecord', 'ChangeDetectionError', 'ChangeDetectionStrategy', 'ChangeDetectorRef',
|
||||
'Class:js', 'Compiler', 'Component', 'ComponentMetadata', 'ComponentRef', 'ContentChild',
|
||||
'ContentChildMetadata', 'ContentChildren', 'ContentChildrenMetadata', 'CyclicDependencyError',
|
||||
'PLATFORM_PIPES', 'DebugNode', 'DebugElement', 'Dependency', 'DependencyMetadata', 'Directive',
|
||||
'DirectiveMetadata', 'DirectiveResolver', 'DynamicComponentLoader', 'ElementRef', 'Output',
|
||||
'EmbeddedViewRef', 'EventEmitter', 'ExceptionHandler', 'OutputMetadata', 'enableProdMode',
|
||||
'ExpressionChangedAfterItHasBeenCheckedException', 'Host', 'HostBinding', 'HostBindingMetadata',
|
||||
'HostListener', 'HostListenerMetadata', 'HostMetadata', 'HostViewFactoryRef', 'Inject',
|
||||
'InjectMetadata', 'Injectable', 'InjectableMetadata', 'Injector', 'InstantiationError',
|
||||
'InvalidProviderError', 'IterableDiffers', 'Key', 'KeyValueChangeRecord', 'KeyValueDiffers',
|
||||
'NgZone', 'NgZoneError', 'NoAnnotationError', 'NoProviderError', 'OpaqueToken', 'Optional',
|
||||
'OptionalMetadata', 'OutOfBoundsError', 'Pipe', 'PipeMetadata', 'PlatformRef', 'Input',
|
||||
'InputMetadata', 'Query', 'QueryList', 'QueryMetadata', 'Renderer', 'RootRenderer',
|
||||
'RenderComponentType', 'ResolvedBinding:dart', 'ResolvedProvider:dart', 'ResolvedFactory', 'Self',
|
||||
'SelfMetadata', 'SkipSelf', 'SkipSelfMetadata', 'SimpleChange', 'TemplateRef', 'Testability',
|
||||
'TestabilityRegistry', 'GetTestability:dart', 'setTestabilityGetter', 'Type', 'PACKAGE_ROOT_URL',
|
||||
'View:dart',
|
||||
/*
|
||||
'View.directives:dart',
|
||||
@ -231,51 +142,16 @@ var NG_CORE = [
|
||||
'View.template:dart',
|
||||
'View.templateUrl:dart',
|
||||
*/
|
||||
'ViewChild',
|
||||
'ViewChildMetadata',
|
||||
'ViewChildren',
|
||||
'ViewChildrenMetadata',
|
||||
'ViewContainerRef',
|
||||
'ViewEncapsulation',
|
||||
'ViewMetadata',
|
||||
'ViewQuery',
|
||||
'ViewQueryMetadata',
|
||||
'ViewResolver',
|
||||
'WrappedException',
|
||||
'WrappedValue',
|
||||
'asNativeElements',
|
||||
'bind',
|
||||
'provide',
|
||||
'createNgZone',
|
||||
'forwardRef:js',
|
||||
'platform',
|
||||
'resolveForwardRef:js',
|
||||
'PLATFORM_COMMON_PROVIDERS',
|
||||
'PLATFORM_INITIALIZER',
|
||||
'AfterContentChecked:dart',
|
||||
'AfterContentInit:dart',
|
||||
'AfterViewChecked:dart',
|
||||
'AfterViewInit:dart',
|
||||
'DoCheck:dart',
|
||||
'HostViewRef',
|
||||
'IterableDifferFactory:dart',
|
||||
'IterableDiffer:dart',
|
||||
'KeyValueDifferFactory:dart',
|
||||
'KeyValueDiffer:dart',
|
||||
'OnChanges:dart',
|
||||
'OnDestroy:dart',
|
||||
'OnInit:dart',
|
||||
'PipeTransform:dart',
|
||||
'reflector',
|
||||
'Stream:dart',
|
||||
'GetterFn:dart',
|
||||
'MethodFn:dart',
|
||||
'NoReflectionCapabilities:dart',
|
||||
'PlatformReflectionCapabilities:dart',
|
||||
'ReflectionInfo',
|
||||
'Reflector',
|
||||
'SetterFn:dart',
|
||||
'ViewRef',
|
||||
'ViewChild', 'ViewChildMetadata', 'ViewChildren', 'ViewChildrenMetadata', 'ViewContainerRef',
|
||||
'ViewEncapsulation', 'ViewMetadata', 'ViewQuery', 'ViewQueryMetadata', 'ViewResolver',
|
||||
'WrappedException', 'WrappedValue', 'asNativeElements', 'bind', 'provide', 'createNgZone',
|
||||
'forwardRef:js', 'platform', 'resolveForwardRef:js', 'PLATFORM_COMMON_PROVIDERS',
|
||||
'PLATFORM_INITIALIZER', 'AfterContentChecked:dart', 'AfterContentInit:dart',
|
||||
'AfterViewChecked:dart', 'AfterViewInit:dart', 'DoCheck:dart', 'HostViewRef',
|
||||
'IterableDifferFactory:dart', 'IterableDiffer:dart', 'KeyValueDifferFactory:dart',
|
||||
'KeyValueDiffer:dart', 'OnChanges:dart', 'OnDestroy:dart', 'OnInit:dart', 'PipeTransform:dart',
|
||||
'reflector', 'Stream:dart', 'GetterFn:dart', 'MethodFn:dart', 'NoReflectionCapabilities:dart',
|
||||
'PlatformReflectionCapabilities:dart', 'ReflectionInfo', 'Reflector', 'SetterFn:dart', 'ViewRef',
|
||||
'TrackByFn:dart'
|
||||
];
|
||||
|
||||
@ -283,20 +159,10 @@ var NG_INSTRUMENTATION =
|
||||
['wtfCreateScope', 'wtfEndTimeRange', 'wtfLeave', 'WtfScopeFn:dart', 'wtfStartTimeRange'];
|
||||
|
||||
var NG_PLATFORM_BROWSER = [
|
||||
'AngularEntrypoint',
|
||||
'BROWSER_APP_PROVIDERS',
|
||||
'BROWSER_PROVIDERS',
|
||||
'BrowserDomAdapter',
|
||||
'By',
|
||||
'CACHED_TEMPLATE_PROVIDER',
|
||||
'DOCUMENT',
|
||||
'ELEMENT_PROBE_PROVIDERS',
|
||||
'ELEMENT_PROBE_PROVIDERS_PROD_MODE',
|
||||
'Title',
|
||||
'bootstrap',
|
||||
'disableDebugTools',
|
||||
'enableDebugTools',
|
||||
'inspectNativeElement'
|
||||
'AngularEntrypoint', 'BROWSER_APP_PROVIDERS', 'BROWSER_PROVIDERS', 'BrowserDomAdapter', 'By',
|
||||
'CACHED_TEMPLATE_PROVIDER', 'DOCUMENT', 'ELEMENT_PROBE_PROVIDERS',
|
||||
'ELEMENT_PROBE_PROVIDERS_PROD_MODE', 'Title', 'bootstrap', 'disableDebugTools',
|
||||
'enableDebugTools', 'inspectNativeElement'
|
||||
];
|
||||
|
||||
var NG_UPGRADE = [
|
||||
@ -345,7 +211,7 @@ export function main() {
|
||||
function diff(actual: string[], expected: string[]): string[] {
|
||||
ListWrapper.sort(actual, compareIgnoreLang);
|
||||
ListWrapper.sort(expected, compareIgnoreLang);
|
||||
let mode = IS_DART ? "dart" : "js";
|
||||
let mode = IS_DART ? 'dart' : 'js';
|
||||
let missing = actual.filter(i => expected.indexOf(i) < 0 && expected.indexOf(`${i}:${mode}`) < 0)
|
||||
.map(s => `+${s}`);
|
||||
let extra = expected.filter(i => shouldIgnore(i) ? false : (actual.indexOf(stripLang(i)) < 0))
|
||||
|
Reference in New Issue
Block a user