angular-docs-cn/modules/angular2/test/public_api_spec.ts

1213 lines
34 KiB
TypeScript
Raw Normal View History

import {
AsyncTestCompleter,
beforeEach,
ddescribe,
describe,
expect,
iit,
inject,
it,
xdescribe,
xit
} from 'angular2/test_lib';
2015-09-21 19:48:16 -04:00
import {getSymbolsFromLibrary} from './symbol_inspector/symbol_inspector';
import {SymbolsDiff} from './symbol_inspector/symbol_differ';
// =================================================================================================
// =================================================================================================
// =========== S T O P - S T O P - S T O P - S T O P - S T O P - S T O P ===========
// =================================================================================================
// =================================================================================================
//
// DO NOT EDIT THIS LIST OF PUBLIC APIS UNLESS YOU GET IT CLEARED BY: mhevery, vsavkin, or tbosch!
//
// =================================================================================================
// =================================================================================================
2015-09-21 19:48:16 -04:00
var NG_API = [
'APP_COMPONENT',
'APP_ID',
'AbstractBindingError',
2015-09-21 19:48:16 -04:00
'AbstractBindingError.addKey()',
'AbstractBindingError.constructResolvingMessage',
'AbstractBindingError.constructResolvingMessage=',
'AbstractBindingError.context',
2015-09-21 19:48:16 -04:00
'AbstractBindingError.injectors',
'AbstractBindingError.injectors=',
'AbstractBindingError.keys',
'AbstractBindingError.keys=',
'AbstractBindingError.message',
'AbstractBindingError.message=',
'AbstractBindingError.stackTrace',
'AbstractControl',
'AbstractControl.dirty',
'AbstractControl.errors',
2015-09-21 19:48:16 -04:00
'AbstractControl.find()',
'AbstractControl.getError()',
'AbstractControl.hasError()',
'AbstractControl.markAsDirty()',
'AbstractControl.markAsTouched()',
'AbstractControl.pristine',
2015-09-21 19:48:16 -04:00
'AbstractControl.setParent()',
'AbstractControl.status',
'AbstractControl.touched',
'AbstractControl.untouched',
2015-09-21 19:48:16 -04:00
'AbstractControl.updateValidity()',
'AbstractControl.updateValueAndValidity()',
'AbstractControl.valid',
2015-09-21 19:48:16 -04:00
'AbstractControl.validator',
'AbstractControl.validator=',
'AbstractControl.value',
'AbstractControl.valueChanges',
'AbstractControlDirective',
'AbstractControlDirective.control',
'AbstractControlDirective.dirty',
'AbstractControlDirective.errors',
'AbstractControlDirective.pristine',
'AbstractControlDirective.touched',
'AbstractControlDirective.untouched',
'AbstractControlDirective.valid',
'AbstractControlDirective.value',
'AppRootUrl',
'AppRootUrl.value',
2015-09-21 19:48:16 -04:00
'AppRootUrl.value=',
'AppViewManager',
2015-09-21 19:48:16 -04:00
'AppViewManager.attachViewInContainer()',
'AppViewManager.createEmbeddedViewInContainer()',
'AppViewManager.createHostViewInContainer()',
'AppViewManager.createRootHostView()',
'AppViewManager.destroyRootHostView()',
'AppViewManager.destroyViewInContainer()',
'AppViewManager.detachViewInContainer()',
'AppViewManager.getComponent()',
'AppViewManager.getHostElement()',
'AppViewManager.getNamedElementInComponentView()',
'AppViewManager.getViewContainer()',
'ApplicationRef',
2015-09-21 19:48:16 -04:00
'ApplicationRef.bootstrap()',
'ApplicationRef.dispose()',
'ApplicationRef.injector',
2015-09-21 19:48:16 -04:00
'ApplicationRef.registerBootstrapListener()',
'ApplicationRef.zone',
'AsyncPipe',
2015-09-21 19:48:16 -04:00
'AsyncPipe.onDestroy()',
'AsyncPipe.transform()',
'Attribute',
2015-09-21 19:48:16 -04:00
'Attribute.attributeName',
'Attribute.token',
'AttributeMetadata',
2015-09-21 19:48:16 -04:00
'AttributeMetadata.attributeName',
'AttributeMetadata.token',
'Binding',
2015-09-21 19:48:16 -04:00
'Binding.dependencies',
'Binding.multi',
2015-09-21 19:48:16 -04:00
'Binding.toAlias',
'Binding.toClass',
'Binding.toFactory',
'Binding.toValue',
'Binding.token',
'BindingBuilder',
2015-09-21 19:48:16 -04:00
'BindingBuilder.toAlias()',
'BindingBuilder.toClass()',
'BindingBuilder.toFactory()',
'BindingBuilder.toValue()',
'BindingBuilder.token',
'BindingBuilder.token=',
'By#all()',
'By#css()',
'By#directive()',
'By',
'CORE_DIRECTIVES',
'ChangeDetectionError',
'ChangeDetectionError.context',
2015-09-21 19:48:16 -04:00
'ChangeDetectionError.location',
'ChangeDetectionError.location=',
'ChangeDetectionError.message',
2015-09-21 19:48:16 -04:00
'ChangeDetectionError.stackTrace',
'ChangeDetectionError.wrapperMessage',
2015-09-21 19:48:16 -04:00
'ChangeDetectionStrategy#CheckAlways',
'ChangeDetectionStrategy#CheckOnce',
'ChangeDetectionStrategy#Checked',
'ChangeDetectionStrategy#Default',
'ChangeDetectionStrategy#Detached',
'ChangeDetectionStrategy#OnPush',
'ChangeDetectionStrategy#OnPushObserve',
'ChangeDetectionStrategy#values',
'ChangeDetectionStrategy',
2015-09-21 19:48:16 -04:00
'ChangeDetectionStrategy.index',
'ChangeDetectorRef',
2015-09-21 19:48:16 -04:00
'ChangeDetectorRef.detach()',
'ChangeDetectorRef.detectChanges()',
'ChangeDetectorRef.markForCheck()',
'ChangeDetectorRef.reattach()',
'CheckboxControlValueAccessor',
'CheckboxControlValueAccessor.ngClassDirty',
'CheckboxControlValueAccessor.ngClassInvalid',
'CheckboxControlValueAccessor.ngClassPristine',
'CheckboxControlValueAccessor.ngClassTouched',
'CheckboxControlValueAccessor.ngClassUntouched',
'CheckboxControlValueAccessor.ngClassValid',
2015-09-21 19:48:16 -04:00
'CheckboxControlValueAccessor.onChange',
'CheckboxControlValueAccessor.onChange=',
'CheckboxControlValueAccessor.onTouched',
'CheckboxControlValueAccessor.onTouched=',
'CheckboxControlValueAccessor.registerOnChange()',
'CheckboxControlValueAccessor.registerOnTouched()',
'CheckboxControlValueAccessor.writeValue()',
'Class:js',
'Compiler',
2015-09-21 19:48:16 -04:00
'Compiler.compileInHost()',
'Component',
2015-09-21 19:48:16 -04:00
'Component.bindings',
'Component.changeDetection',
'Component.compileChildren',
'Component.events',
'Component.exportAs',
'Component.host',
'Component.moduleId',
'Component.properties',
'Component.queries',
'Component.selector',
'Component.viewBindings',
'ComponentMetadata',
2015-09-21 19:48:16 -04:00
'ComponentMetadata.bindings',
'ComponentMetadata.changeDetection',
'ComponentMetadata.compileChildren',
'ComponentMetadata.events',
'ComponentMetadata.exportAs',
'ComponentMetadata.host',
'ComponentMetadata.moduleId',
'ComponentMetadata.properties',
'ComponentMetadata.queries',
'ComponentMetadata.selector',
'ComponentMetadata.viewBindings',
'ComponentRef',
2015-09-21 19:48:16 -04:00
'ComponentRef.componentType',
'ComponentRef.componentType=',
'ComponentRef.dispose()',
'ComponentRef.hostComponent',
'ComponentRef.hostComponentType',
'ComponentRef.hostView',
2015-09-21 19:48:16 -04:00
'ComponentRef.injector',
'ComponentRef.injector=',
'ComponentRef.instance',
'ComponentRef.instance=',
'ComponentRef.location',
'ComponentRef.location=',
'ComponentUrlMapper',
2015-09-21 19:48:16 -04:00
'ComponentUrlMapper.getUrl()',
'ContentChild',
2015-09-21 19:48:16 -04:00
'ContentChild.descendants',
'ContentChild.first',
'ContentChild.isVarBindingQuery',
'ContentChild.isViewQuery',
'ContentChild.selector',
'ContentChild.token',
'ContentChild.varBindings',
'ContentChildMetadata',
2015-09-21 19:48:16 -04:00
'ContentChildMetadata.descendants',
'ContentChildMetadata.first',
'ContentChildMetadata.isVarBindingQuery',
'ContentChildMetadata.isViewQuery',
'ContentChildMetadata.selector',
'ContentChildMetadata.token',
'ContentChildMetadata.varBindings',
'ContentChildren',
2015-09-21 19:48:16 -04:00
'ContentChildren.descendants',
'ContentChildren.first',
'ContentChildren.isVarBindingQuery',
'ContentChildren.isViewQuery',
'ContentChildren.selector',
'ContentChildren.token',
'ContentChildren.varBindings',
'ContentChildrenMetadata',
2015-09-21 19:48:16 -04:00
'ContentChildrenMetadata.descendants',
'ContentChildrenMetadata.first',
'ContentChildrenMetadata.isVarBindingQuery',
'ContentChildrenMetadata.isViewQuery',
'ContentChildrenMetadata.selector',
'ContentChildrenMetadata.token',
'ContentChildrenMetadata.varBindings',
'Control',
'Control.dirty',
'Control.errors',
2015-09-21 19:48:16 -04:00
'Control.find()',
'Control.getError()',
'Control.hasError()',
'Control.markAsDirty()',
'Control.markAsTouched()',
'Control.pristine',
2015-09-21 19:48:16 -04:00
'Control.registerOnChange()',
'Control.setParent()',
'Control.status',
'Control.touched',
'Control.untouched',
2015-09-21 19:48:16 -04:00
'Control.updateValidity()',
'Control.updateValue()',
'Control.updateValueAndValidity()',
'Control.valid',
2015-09-21 19:48:16 -04:00
'Control.validator',
'Control.validator=',
'Control.value',
'Control.valueChanges',
'ControlArray',
2015-09-21 19:48:16 -04:00
'ControlArray.at()',
'ControlArray.controls',
'ControlArray.controls=',
'ControlArray.dirty',
'ControlArray.errors',
2015-09-21 19:48:16 -04:00
'ControlArray.find()',
'ControlArray.getError()',
'ControlArray.hasError()',
'ControlArray.insert()',
'ControlArray.length',
2015-09-21 19:48:16 -04:00
'ControlArray.markAsDirty()',
'ControlArray.markAsTouched()',
'ControlArray.pristine',
2015-09-21 19:48:16 -04:00
'ControlArray.push()',
'ControlArray.removeAt()',
'ControlArray.setParent()',
'ControlArray.status',
'ControlArray.touched',
'ControlArray.untouched',
2015-09-21 19:48:16 -04:00
'ControlArray.updateValidity()',
'ControlArray.updateValueAndValidity()',
'ControlArray.valid',
2015-09-21 19:48:16 -04:00
'ControlArray.validator',
'ControlArray.validator=',
'ControlArray.value',
'ControlArray.valueChanges',
'ControlContainer',
'ControlContainer.control',
'ControlContainer.dirty',
'ControlContainer.errors',
'ControlContainer.formDirective',
2015-09-21 19:48:16 -04:00
'ControlContainer.name',
'ControlContainer.name=',
'ControlContainer.path',
'ControlContainer.pristine',
'ControlContainer.touched',
'ControlContainer.untouched',
'ControlContainer.valid',
'ControlContainer.value',
'ControlGroup',
2015-09-21 19:48:16 -04:00
'ControlGroup.addControl()',
'ControlGroup.contains()',
'ControlGroup.controls',
'ControlGroup.controls=',
'ControlGroup.dirty',
'ControlGroup.errors',
2015-09-21 19:48:16 -04:00
'ControlGroup.exclude()',
'ControlGroup.find()',
'ControlGroup.getError()',
'ControlGroup.hasError()',
'ControlGroup.include()',
'ControlGroup.markAsDirty()',
'ControlGroup.markAsTouched()',
'ControlGroup.pristine',
2015-09-21 19:48:16 -04:00
'ControlGroup.removeControl()',
'ControlGroup.setParent()',
'ControlGroup.status',
'ControlGroup.touched',
'ControlGroup.untouched',
2015-09-21 19:48:16 -04:00
'ControlGroup.updateValidity()',
'ControlGroup.updateValueAndValidity()',
'ControlGroup.valid',
2015-09-21 19:48:16 -04:00
'ControlGroup.validator',
'ControlGroup.validator=',
'ControlGroup.value',
'ControlGroup.valueChanges',
'CurrencyPipe',
2015-09-21 19:48:16 -04:00
'CurrencyPipe.transform()',
'CyclicDependencyError',
2015-09-21 19:48:16 -04:00
'CyclicDependencyError.addKey()',
'CyclicDependencyError.constructResolvingMessage',
'CyclicDependencyError.constructResolvingMessage=',
'CyclicDependencyError.context',
2015-09-21 19:48:16 -04:00
'CyclicDependencyError.injectors',
'CyclicDependencyError.injectors=',
'CyclicDependencyError.keys',
'CyclicDependencyError.keys=',
'CyclicDependencyError.message',
'CyclicDependencyError.message=',
'CyclicDependencyError.stackTrace',
'DEFAULT_PIPES',
'DEFAULT_PIPES_TOKEN',
'DOCUMENT',
'DatePipe',
2015-09-21 19:48:16 -04:00
'DatePipe.supports()',
'DatePipe.transform()',
'DebugElement',
'DebugElement.children',
'DebugElement.componentInstance',
'DebugElement.componentViewChildren',
'DebugElement.elementRef',
2015-09-21 19:48:16 -04:00
'DebugElement.getDirectiveInstance()',
'DebugElement.getLocal()',
'DebugElement.hasDirective()',
'DebugElement.inject()',
'DebugElement.nativeElement',
2015-09-21 19:48:16 -04:00
'DebugElement.query()',
'DebugElement.queryAll()',
'DebugElement.triggerEventHandler()',
'DecimalPipe',
2015-09-21 19:48:16 -04:00
'DecimalPipe.transform()',
'DefaultValidators',
'DefaultValueAccessor',
'DefaultValueAccessor.ngClassDirty',
'DefaultValueAccessor.ngClassInvalid',
'DefaultValueAccessor.ngClassPristine',
'DefaultValueAccessor.ngClassTouched',
'DefaultValueAccessor.ngClassUntouched',
'DefaultValueAccessor.ngClassValid',
2015-09-21 19:48:16 -04:00
'DefaultValueAccessor.onChange',
'DefaultValueAccessor.onChange=',
'DefaultValueAccessor.onTouched',
'DefaultValueAccessor.onTouched=',
'DefaultValueAccessor.registerOnChange()',
'DefaultValueAccessor.registerOnTouched()',
'DefaultValueAccessor.writeValue()',
'Dependency#fromKey()',
'Dependency',
2015-09-21 19:48:16 -04:00
'Dependency.key',
'Dependency.key=',
'Dependency.lowerBoundVisibility',
'Dependency.lowerBoundVisibility=',
'Dependency.optional',
'Dependency.optional=',
'Dependency.properties',
'Dependency.properties=',
'Dependency.upperBoundVisibility',
'Dependency.upperBoundVisibility=',
'DependencyMetadata',
'DependencyMetadata.token',
'Directive',
2015-09-21 19:48:16 -04:00
'Directive.bindings',
'Directive.compileChildren',
'Directive.events',
'Directive.exportAs',
'Directive.host',
'Directive.moduleId',
'Directive.properties',
'Directive.queries',
'Directive.selector',
'DirectiveMetadata',
2015-09-21 19:48:16 -04:00
'DirectiveMetadata.bindings',
'DirectiveMetadata.compileChildren',
'DirectiveMetadata.events',
'DirectiveMetadata.exportAs',
'DirectiveMetadata.host',
'DirectiveMetadata.moduleId',
'DirectiveMetadata.properties',
'DirectiveMetadata.queries',
'DirectiveMetadata.selector',
'DirectiveResolver',
2015-09-21 19:48:16 -04:00
'DirectiveResolver.resolve()',
'DynamicComponentLoader',
2015-09-21 19:48:16 -04:00
'DynamicComponentLoader.loadAsRoot()',
'DynamicComponentLoader.loadIntoLocation()',
'DynamicComponentLoader.loadNextToLocation()',
'ELEMENT_PROBE_BINDINGS',
'ElementRef',
2015-09-21 19:48:16 -04:00
'ElementRef.boundElementIndex',
'ElementRef.boundElementIndex=',
'ElementRef.nativeElement',
2015-09-21 19:48:16 -04:00
'ElementRef.parentView',
'ElementRef.parentView=',
'ElementRef.renderBoundElementIndex',
'ElementRef.renderBoundElementIndex=',
'ElementRef.renderView',
2015-09-21 19:48:16 -04:00
'ElementRef.renderView=',
'Event',
2015-09-21 19:48:16 -04:00
'Event.bindingPropertyName',
'EventEmitter',
2015-09-21 19:48:16 -04:00
'EventEmitter.add():dart',
'EventEmitter.addError():dart',
'EventEmitter.any():dart',
'EventEmitter.asBroadcastStream():dart',
'EventEmitter.asyncExpand():dart',
'EventEmitter.asyncMap():dart',
'EventEmitter.close():dart',
'EventEmitter.contains():dart',
'EventEmitter.distinct():dart',
'EventEmitter.drain():dart',
'EventEmitter.elementAt():dart',
'EventEmitter.every():dart',
'EventEmitter.expand():dart',
'EventEmitter.first:dart',
'EventEmitter.firstWhere():dart',
'EventEmitter.fold():dart',
'EventEmitter.forEach():dart',
'EventEmitter.handleError():dart',
'EventEmitter.isBroadcast:dart',
'EventEmitter.isEmpty:dart',
'EventEmitter.join():dart',
'EventEmitter.last:dart',
'EventEmitter.lastWhere():dart',
'EventEmitter.length:dart',
'EventEmitter.listen():dart',
'EventEmitter.map():dart',
'EventEmitter.next():js',
'EventEmitter.observer():js',
'EventEmitter.pipe():dart',
'EventEmitter.reduce():dart',
'EventEmitter.return():js',
'EventEmitter.single:dart',
'EventEmitter.singleWhere():dart',
'EventEmitter.skip():dart',
'EventEmitter.skipWhile():dart',
'EventEmitter.take():dart',
'EventEmitter.takeWhile():dart',
'EventEmitter.throw():js',
'EventEmitter.timeout():dart',
'EventEmitter.toList():dart',
'EventEmitter.toRx():js',
'EventEmitter.toSet():dart',
'EventEmitter.transform():dart',
'EventEmitter.where():dart',
'EventMetadata',
2015-09-21 19:48:16 -04:00
'EventMetadata.bindingPropertyName',
'ExpressionChangedAfterItHasBeenCheckedException',
2015-09-21 19:48:16 -04:00
'ExpressionChangedAfterItHasBeenCheckedException.message',
'ExpressionChangedAfterItHasBeenCheckedException.stackTrace',
'FORM_BINDINGS',
'FORM_DIRECTIVES',
'FormBuilder',
2015-09-21 19:48:16 -04:00
'FormBuilder.array()',
'FormBuilder.control()',
'FormBuilder.group()',
'Host',
'HostBinding',
2015-09-21 19:48:16 -04:00
'HostBinding.hostPropertyName',
'HostBindingMetadata',
2015-09-21 19:48:16 -04:00
'HostBindingMetadata.hostPropertyName',
'HostListener',
2015-09-21 19:48:16 -04:00
'HostListener.args',
'HostListener.eventName',
'HostListenerMetadata',
2015-09-21 19:48:16 -04:00
'HostListenerMetadata.args',
'HostListenerMetadata.eventName',
'HostMetadata',
'Inject',
2015-09-21 19:48:16 -04:00
'Inject.token',
'InjectMetadata',
2015-09-21 19:48:16 -04:00
'InjectMetadata.token',
'Injectable',
'InjectableMetadata',
2015-09-21 19:48:16 -04:00
'Injector#fromResolvedBindings()',
'Injector#resolve()',
'Injector#resolveAndCreate()',
'Injector',
2015-09-21 19:48:16 -04:00
'Injector.createChildFromResolved()',
'Injector.debugContext()',
'Injector.displayName',
2015-09-21 19:48:16 -04:00
'Injector.get()',
'Injector.getAt()',
'Injector.getOptional()',
'Injector.instantiateResolved()',
'Injector.internalStrategy',
'Injector.parent',
2015-09-21 19:48:16 -04:00
'Injector.resolveAndCreateChild()',
'Injector.resolveAndInstantiate()',
'InstantiationError',
2015-09-21 19:48:16 -04:00
'InstantiationError.addKey()',
'InstantiationError.causeKey',
'InstantiationError.context',
2015-09-21 19:48:16 -04:00
'InstantiationError.injectors',
'InstantiationError.injectors=',
'InstantiationError.keys',
'InstantiationError.keys=',
'InstantiationError.message',
2015-09-21 19:48:16 -04:00
'InstantiationError.stackTrace',
'InstantiationError.wrapperMessage',
'InvalidBindingError',
2015-09-21 19:48:16 -04:00
'InvalidBindingError.message',
'InvalidBindingError.stackTrace',
'IterableDiffers#create()',
'IterableDiffers#extend()',
'IterableDiffers',
2015-09-21 19:48:16 -04:00
'IterableDiffers.factories',
'IterableDiffers.find()',
'JsonPipe',
2015-09-21 19:48:16 -04:00
'JsonPipe.transform()',
'Key#get()',
'Key#numberOfKeys',
'Key',
'Key.displayName',
2015-09-21 19:48:16 -04:00
'Key.id',
'Key.id=',
'Key.token',
'Key.token=',
'KeyValueDiffers#create()',
'KeyValueDiffers#extend()',
'KeyValueDiffers',
2015-09-21 19:48:16 -04:00
'KeyValueDiffers.factories',
'KeyValueDiffers.find()',
'LifeCycle',
'LifeCycle.registerWith()',
'LifeCycle.tick()',
'Locals',
2015-09-21 19:48:16 -04:00
'Locals.clearValues()',
'Locals.contains()',
'Locals.current',
'Locals.current=',
'Locals.get()',
'Locals.parent',
'Locals.parent=',
'Locals.set()',
'LowerCasePipe',
2015-09-21 19:48:16 -04:00
'LowerCasePipe.transform()',
'MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE',
'NG_VALIDATORS',
'NgClass',
2015-09-21 19:48:16 -04:00
'NgClass.doCheck()',
'NgClass.initialClasses=',
'NgClass.onDestroy()',
'NgClass.rawClass=',
'NgControl',
'NgControl.control',
'NgControl.dirty',
'NgControl.errors',
2015-09-21 19:48:16 -04:00
'NgControl.name',
'NgControl.name=',
'NgControl.path',
'NgControl.pristine',
'NgControl.touched',
'NgControl.untouched',
'NgControl.valid',
'NgControl.validator',
'NgControl.value',
2015-09-21 19:48:16 -04:00
'NgControl.valueAccessor',
'NgControl.valueAccessor=',
'NgControl.viewToModelUpdate()',
'NgControlGroup',
'NgControlGroup.control',
'NgControlGroup.dirty',
'NgControlGroup.errors',
'NgControlGroup.formDirective',
2015-09-21 19:48:16 -04:00
'NgControlGroup.name',
'NgControlGroup.name=',
'NgControlGroup.onDestroy()',
'NgControlGroup.onInit()',
'NgControlGroup.path',
'NgControlGroup.pristine',
'NgControlGroup.touched',
'NgControlGroup.untouched',
'NgControlGroup.valid',
'NgControlGroup.value',
'NgControlName',
'NgControlName.control',
'NgControlName.dirty',
'NgControlName.errors',
'NgControlName.formDirective',
2015-09-21 19:48:16 -04:00
'NgControlName.model',
'NgControlName.model=',
'NgControlName.name',
'NgControlName.name=',
'NgControlName.onChanges()',
'NgControlName.onDestroy()',
'NgControlName.path',
'NgControlName.pristine',
'NgControlName.touched',
'NgControlName.untouched',
2015-09-21 19:48:16 -04:00
'NgControlName.update',
'NgControlName.update=',
'NgControlName.valid',
'NgControlName.validator',
2015-09-21 19:48:16 -04:00
'NgControlName.validators',
'NgControlName.validators=',
'NgControlName.value',
2015-09-21 19:48:16 -04:00
'NgControlName.valueAccessor',
'NgControlName.valueAccessor=',
'NgControlName.viewModel',
'NgControlName.viewModel=',
'NgControlName.viewToModelUpdate()',
'NgFor',
2015-09-21 19:48:16 -04:00
'NgFor.doCheck()',
'NgFor.ngForOf=',
'NgForm',
2015-09-21 19:48:16 -04:00
'NgForm.addControl()',
'NgForm.addControlGroup()',
'NgForm.control',
'NgForm.controls',
'NgForm.dirty',
'NgForm.errors',
2015-09-21 19:48:16 -04:00
'NgForm.form',
'NgForm.form=',
'NgForm.formDirective',
2015-09-21 19:48:16 -04:00
'NgForm.getControl()',
'NgForm.getControlGroup()',
'NgForm.name',
'NgForm.name=',
'NgForm.ngSubmit',
'NgForm.ngSubmit=',
'NgForm.onSubmit()',
'NgForm.path',
'NgForm.pristine',
2015-09-21 19:48:16 -04:00
'NgForm.removeControl()',
'NgForm.removeControlGroup()',
'NgForm.touched',
'NgForm.untouched',
2015-09-21 19:48:16 -04:00
'NgForm.updateModel()',
'NgForm.valid',
'NgForm.value',
'NgFormControl',
'NgFormControl.control',
'NgFormControl.dirty',
'NgFormControl.errors',
2015-09-21 19:48:16 -04:00
'NgFormControl.form',
'NgFormControl.form=',
'NgFormControl.model',
'NgFormControl.model=',
'NgFormControl.name',
'NgFormControl.name=',
'NgFormControl.onChanges()',
'NgFormControl.path',
'NgFormControl.pristine',
'NgFormControl.touched',
'NgFormControl.untouched',
2015-09-21 19:48:16 -04:00
'NgFormControl.update',
'NgFormControl.update=',
'NgFormControl.valid',
'NgFormControl.validator',
2015-09-21 19:48:16 -04:00
'NgFormControl.validators',
'NgFormControl.validators=',
'NgFormControl.value',
2015-09-21 19:48:16 -04:00
'NgFormControl.valueAccessor',
'NgFormControl.valueAccessor=',
'NgFormControl.viewModel',
'NgFormControl.viewModel=',
'NgFormControl.viewToModelUpdate()',
'NgFormModel',
2015-09-21 19:48:16 -04:00
'NgFormModel.addControl()',
'NgFormModel.addControlGroup()',
'NgFormModel.control',
2015-09-21 19:48:16 -04:00
'NgFormModel.directives',
'NgFormModel.directives=',
'NgFormModel.dirty',
'NgFormModel.errors',
2015-09-21 19:48:16 -04:00
'NgFormModel.form',
'NgFormModel.form=',
'NgFormModel.formDirective',
2015-09-21 19:48:16 -04:00
'NgFormModel.getControl()',
'NgFormModel.getControlGroup()',
'NgFormModel.name',
'NgFormModel.name=',
'NgFormModel.ngSubmit',
'NgFormModel.ngSubmit=',
'NgFormModel.onChanges()',
'NgFormModel.onSubmit()',
'NgFormModel.path',
'NgFormModel.pristine',
2015-09-21 19:48:16 -04:00
'NgFormModel.removeControl()',
'NgFormModel.removeControlGroup()',
'NgFormModel.touched',
'NgFormModel.untouched',
2015-09-21 19:48:16 -04:00
'NgFormModel.updateModel()',
'NgFormModel.valid',
'NgFormModel.value',
'NgIf',
2015-09-21 19:48:16 -04:00
'NgIf.ngIf=',
'NgModel',
'NgModel.control',
'NgModel.dirty',
'NgModel.errors',
2015-09-21 19:48:16 -04:00
'NgModel.model',
'NgModel.model=',
'NgModel.name',
'NgModel.name=',
'NgModel.onChanges()',
'NgModel.path',
'NgModel.pristine',
'NgModel.touched',
'NgModel.untouched',
2015-09-21 19:48:16 -04:00
'NgModel.update',
'NgModel.update=',
'NgModel.valid',
'NgModel.validator',
2015-09-21 19:48:16 -04:00
'NgModel.validators',
'NgModel.validators=',
'NgModel.value',
2015-09-21 19:48:16 -04:00
'NgModel.valueAccessor',
'NgModel.valueAccessor=',
'NgModel.viewModel',
'NgModel.viewModel=',
'NgModel.viewToModelUpdate()',
'NgNonBindable',
'NgSelectOption',
'NgStyle',
2015-09-21 19:48:16 -04:00
'NgStyle.doCheck()',
'NgStyle.rawStyle=',
'NgSwitch',
2015-09-21 19:48:16 -04:00
'NgSwitch.ngSwitch=',
'NgSwitchDefault',
'NgSwitchWhen',
2015-09-21 19:48:16 -04:00
'NgSwitchWhen.ngSwitchWhen=',
'NgZone',
2015-09-21 19:48:16 -04:00
'NgZone.overrideOnErrorHandler()',
'NgZone.overrideOnEventDone()',
'NgZone.overrideOnTurnDone()',
'NgZone.overrideOnTurnStart()',
'NgZone.run()',
'NgZone.runOutsideAngular()',
'NoAnnotationError',
2015-09-21 19:48:16 -04:00
'NoAnnotationError.message',
'NoAnnotationError.stackTrace',
'NoBindingError',
2015-09-21 19:48:16 -04:00
'NoBindingError.addKey()',
'NoBindingError.constructResolvingMessage',
'NoBindingError.constructResolvingMessage=',
'NoBindingError.context',
2015-09-21 19:48:16 -04:00
'NoBindingError.injectors',
'NoBindingError.injectors=',
'NoBindingError.keys',
'NoBindingError.keys=',
'NoBindingError.message',
'NoBindingError.message=',
'NoBindingError.stackTrace',
'NumberPipe',
2015-09-21 19:48:16 -04:00
'Observable.observer():js',
'Observable:js',
'ObservableListDiff.check():dart',
'ObservableListDiff.collection:dart',
'ObservableListDiff.diff():dart',
'ObservableListDiff.forEachAddedItem():dart',
'ObservableListDiff.forEachItem():dart',
'ObservableListDiff.forEachMovedItem():dart',
'ObservableListDiff.forEachPreviousItem():dart',
'ObservableListDiff.forEachRemovedItem():dart',
'ObservableListDiff.isDirty:dart',
'ObservableListDiff.length:dart',
'ObservableListDiff.onDestroy():dart',
'ObservableListDiff:dart',
'ObservableListDiffFactory.create():dart',
'ObservableListDiffFactory.supports():dart',
'ObservableListDiffFactory:dart',
'OpaqueToken',
'Optional',
'OptionalMetadata',
'OutOfBoundsError',
2015-09-21 19:48:16 -04:00
'OutOfBoundsError.message',
'OutOfBoundsError.stackTrace',
'PercentPipe',
2015-09-21 19:48:16 -04:00
'PercentPipe.transform()',
'Pipe',
2015-09-21 19:48:16 -04:00
'Pipe.name',
'Pipe.pure',
'PipeMetadata',
2015-09-21 19:48:16 -04:00
'PipeMetadata.name',
'PipeMetadata.pure',
'PlatformRef',
2015-09-21 19:48:16 -04:00
'PlatformRef.application()',
'PlatformRef.asyncApplication()',
'PlatformRef.dispose()',
'PlatformRef.injector',
2015-09-21 19:48:16 -04:00
'Predicate:dart',
'Property',
2015-09-21 19:48:16 -04:00
'Property.bindingPropertyName',
'PropertyMetadata',
2015-09-21 19:48:16 -04:00
'PropertyMetadata.bindingPropertyName',
'ProtoViewRef',
'Query',
2015-09-21 19:48:16 -04:00
'Query.descendants',
'Query.first',
'Query.isVarBindingQuery',
'Query.isViewQuery',
'Query.selector',
'Query.token',
'Query.varBindings',
'QueryList',
2015-09-21 19:48:16 -04:00
'QueryList.add()',
'QueryList.any():dart',
'QueryList.contains():dart',
'QueryList.elementAt():dart',
'QueryList.every():dart',
'QueryList.expand():dart',
'QueryList.fireCallbacks():',
'QueryList.first',
2015-09-21 19:48:16 -04:00
'QueryList.firstWhere():dart',
'QueryList.fold():dart',
'QueryList.forEach():dart',
'QueryList.isEmpty',
'QueryList.isNotEmpty',
'QueryList.iterator',
'QueryList.join():dart',
'QueryList.last',
2015-09-21 19:48:16 -04:00
'QueryList.lastWhere():dart',
'QueryList.length',
2015-09-21 19:48:16 -04:00
'QueryList.map()',
'QueryList.onChange()',
'QueryList.reduce():dart',
'QueryList.removeAllCallbacks()',
'QueryList.removeCallback()',
'QueryList.reset()',
'QueryList.single',
'QueryList.singleWhere():dart',
'QueryList.skip():dart',
'QueryList.skipWhile():dart',
'QueryList.take():dart',
'QueryList.takeWhile():dart',
'QueryList.toList():dart',
'QueryList.toSet():dart',
'QueryList.where():dart',
'QueryMetadata',
2015-09-21 19:48:16 -04:00
'QueryMetadata.descendants',
'QueryMetadata.first',
'QueryMetadata.isVarBindingQuery',
'QueryMetadata.isViewQuery',
'QueryMetadata.selector',
'QueryMetadata.token',
'QueryMetadata.varBindings',
2015-09-21 19:48:16 -04:00
'RenderDirectiveMetadata#COMPONENT_TYPE',
'RenderDirectiveMetadata#DIRECTIVE_TYPE',
'RenderDirectiveMetadata#create()',
'RenderDirectiveMetadata',
2015-09-21 19:48:16 -04:00
'RenderDirectiveMetadata.callAfterContentChecked',
'RenderDirectiveMetadata.callAfterContentChecked=',
'RenderDirectiveMetadata.callAfterContentInit',
'RenderDirectiveMetadata.callAfterContentInit=',
'RenderDirectiveMetadata.callAfterViewChecked',
'RenderDirectiveMetadata.callAfterViewChecked=',
'RenderDirectiveMetadata.callAfterViewInit',
'RenderDirectiveMetadata.callAfterViewInit=',
'RenderDirectiveMetadata.callDoCheck',
'RenderDirectiveMetadata.callDoCheck=',
'RenderDirectiveMetadata.callOnChanges',
'RenderDirectiveMetadata.callOnChanges=',
'RenderDirectiveMetadata.callOnDestroy',
'RenderDirectiveMetadata.callOnDestroy=',
'RenderDirectiveMetadata.callOnInit',
'RenderDirectiveMetadata.callOnInit=',
'RenderDirectiveMetadata.changeDetection',
'RenderDirectiveMetadata.changeDetection=',
'RenderDirectiveMetadata.compileChildren',
'RenderDirectiveMetadata.compileChildren=',
'RenderDirectiveMetadata.events',
'RenderDirectiveMetadata.events=',
'RenderDirectiveMetadata.exportAs',
'RenderDirectiveMetadata.exportAs=',
'RenderDirectiveMetadata.hostAttributes',
'RenderDirectiveMetadata.hostAttributes=',
'RenderDirectiveMetadata.hostListeners',
'RenderDirectiveMetadata.hostListeners=',
'RenderDirectiveMetadata.hostProperties',
'RenderDirectiveMetadata.hostProperties=',
'RenderDirectiveMetadata.id',
'RenderDirectiveMetadata.id=',
'RenderDirectiveMetadata.properties',
'RenderDirectiveMetadata.properties=',
'RenderDirectiveMetadata.queries',
'RenderDirectiveMetadata.queries=',
'RenderDirectiveMetadata.readAttributes',
'RenderDirectiveMetadata.readAttributes=',
'RenderDirectiveMetadata.selector',
'RenderDirectiveMetadata.selector=',
'RenderDirectiveMetadata.type',
'RenderDirectiveMetadata.type=',
'RenderFragmentRef',
'RenderProtoViewRef',
'RenderViewRef',
'RenderViewWithFragments',
2015-09-21 19:48:16 -04:00
'RenderViewWithFragments.fragmentRefs',
'RenderViewWithFragments.fragmentRefs=',
'RenderViewWithFragments.viewRef',
'RenderViewWithFragments.viewRef=',
'Renderer',
2015-09-21 19:48:16 -04:00
'Renderer.attachFragmentAfterElement()',
'Renderer.attachFragmentAfterFragment()',
'Renderer.createRootHostView()',
'Renderer.createView()',
'Renderer.dehydrateView()',
'Renderer.destroyView()',
'Renderer.detachFragment()',
'Renderer.getNativeElementSync()',
'Renderer.hydrateView()',
'Renderer.invokeElementMethod()',
'Renderer.setElementAttribute()',
'Renderer.setElementClass()',
'Renderer.setElementProperty()',
'Renderer.setElementStyle()',
'Renderer.setEventDispatcher()',
'Renderer.setText()',
'ResolvedBinding',
2015-09-21 19:48:16 -04:00
'ResolvedBinding.key',
'ResolvedBinding.key=',
'ResolvedBinding.multiBinding',
'ResolvedBinding.multiBinding=',
'ResolvedBinding.resolvedFactories',
'ResolvedBinding.resolvedFactories=',
'ResolvedBinding.resolvedFactory',
'ResolvedFactory',
2015-09-21 19:48:16 -04:00
'ResolvedFactory.dependencies',
'ResolvedFactory.dependencies=',
'ResolvedFactory.factory',
'ResolvedFactory.factory=',
'Scope#all()',
'Scope#light()',
'Scope#view()',
'Scope', // TODO(misko): rename?
'SelectControlValueAccessor',
'SelectControlValueAccessor.ngClassDirty',
'SelectControlValueAccessor.ngClassInvalid',
'SelectControlValueAccessor.ngClassPristine',
'SelectControlValueAccessor.ngClassTouched',
'SelectControlValueAccessor.ngClassUntouched',
'SelectControlValueAccessor.ngClassValid',
2015-09-21 19:48:16 -04:00
'SelectControlValueAccessor.onChange',
'SelectControlValueAccessor.onChange=',
'SelectControlValueAccessor.onTouched',
'SelectControlValueAccessor.onTouched=',
'SelectControlValueAccessor.registerOnChange()',
'SelectControlValueAccessor.registerOnTouched()',
'SelectControlValueAccessor.value',
'SelectControlValueAccessor.value=',
'SelectControlValueAccessor.writeValue()',
'Self',
'SelfMetadata',
'SkipSelf',
'SkipSelfMetadata',
2015-09-21 19:48:16 -04:00
'SlicePipe',
'SlicePipe.supports()',
'SlicePipe.transform()',
'TemplateRef',
2015-09-21 19:48:16 -04:00
'TemplateRef.elementRef',
'TemplateRef.elementRef=',
'TemplateRef.hasLocal()',
'TemplateRef.protoViewRef',
2015-09-21 19:48:16 -04:00
'Type:js',
'TypeLiteral',
'TypeLiteral.type',
'UpperCasePipe',
2015-09-21 19:48:16 -04:00
'UpperCasePipe.transform()',
'UrlResolver',
2015-09-21 19:48:16 -04:00
'UrlResolver.packagePrefix',
'UrlResolver.resolve()',
'Validators#array()',
'Validators#compose()',
'Validators#group()',
'Validators#nullValidator()',
'Validators#required()',
'Validators',
'View',
2015-09-21 19:48:16 -04:00
'View.directives',
'View.encapsulation',
'View.pipes',
'View.styleUrls',
'View.styles',
'View.template',
'View.templateUrl',
'ViewChild',
2015-09-21 19:48:16 -04:00
'ViewChild.descendants',
'ViewChild.first',
'ViewChild.isVarBindingQuery',
'ViewChild.isViewQuery',
'ViewChild.selector',
'ViewChild.token',
'ViewChild.varBindings',
'ViewChildMetadata',
2015-09-21 19:48:16 -04:00
'ViewChildMetadata.descendants',
'ViewChildMetadata.first',
'ViewChildMetadata.isVarBindingQuery',
'ViewChildMetadata.isViewQuery',
'ViewChildMetadata.selector',
'ViewChildMetadata.token',
'ViewChildMetadata.varBindings',
'ViewChildren',
2015-09-21 19:48:16 -04:00
'ViewChildren.descendants',
'ViewChildren.first',
'ViewChildren.isVarBindingQuery',
'ViewChildren.isViewQuery',
'ViewChildren.selector',
'ViewChildren.token',
'ViewChildren.varBindings',
'ViewChildrenMetadata',
2015-09-21 19:48:16 -04:00
'ViewChildrenMetadata.descendants',
'ViewChildrenMetadata.first',
'ViewChildrenMetadata.isVarBindingQuery',
'ViewChildrenMetadata.isViewQuery',
'ViewChildrenMetadata.selector',
'ViewChildrenMetadata.token',
'ViewChildrenMetadata.varBindings',
'ViewContainerRef',
2015-09-21 19:48:16 -04:00
'ViewContainerRef.clear()',
'ViewContainerRef.createEmbeddedView()',
'ViewContainerRef.createHostView()',
'ViewContainerRef.detach()',
'ViewContainerRef.element',
'ViewContainerRef.element=',
'ViewContainerRef.get()',
'ViewContainerRef.indexOf()',
'ViewContainerRef.insert()',
'ViewContainerRef.length',
2015-09-21 19:48:16 -04:00
'ViewContainerRef.remove()',
'ViewContainerRef.viewManager',
'ViewContainerRef.viewManager=',
'ViewDefinition',
2015-09-21 19:48:16 -04:00
'ViewDefinition.componentId',
'ViewDefinition.componentId=',
'ViewDefinition.directives',
'ViewDefinition.directives=',
'ViewDefinition.encapsulation',
'ViewDefinition.encapsulation=',
'ViewDefinition.styleAbsUrls',
'ViewDefinition.styleAbsUrls=',
'ViewDefinition.styles',
'ViewDefinition.styles=',
'ViewDefinition.template',
'ViewDefinition.template=',
'ViewDefinition.templateAbsUrl',
'ViewDefinition.templateAbsUrl=',
'ViewEncapsulation#Emulated',
'ViewEncapsulation#Native',
'ViewEncapsulation#None',
'ViewEncapsulation#values',
'ViewEncapsulation',
2015-09-21 19:48:16 -04:00
'ViewEncapsulation.index',
'ViewMetadata',
2015-09-21 19:48:16 -04:00
'ViewMetadata.directives',
'ViewMetadata.encapsulation',
'ViewMetadata.pipes',
'ViewMetadata.styleUrls',
'ViewMetadata.styles',
'ViewMetadata.template',
'ViewMetadata.templateUrl',
'ViewQuery',
2015-09-21 19:48:16 -04:00
'ViewQuery.descendants',
'ViewQuery.first',
'ViewQuery.isVarBindingQuery',
'ViewQuery.isViewQuery',
'ViewQuery.selector',
'ViewQuery.token',
'ViewQuery.varBindings',
'ViewQueryMetadata',
2015-09-21 19:48:16 -04:00
'ViewQueryMetadata.descendants',
'ViewQueryMetadata.first',
'ViewQueryMetadata.isVarBindingQuery',
'ViewQueryMetadata.isViewQuery',
'ViewQueryMetadata.selector',
'ViewQueryMetadata.token',
'ViewQueryMetadata.varBindings',
'ViewRef',
'ViewRef.changeDetectorRef',
'ViewRef.changeDetectorRef=',
'ViewRef.render',
'ViewRef.renderFragment',
2015-09-21 19:48:16 -04:00
'ViewRef.setLocal()',
'WrappedException',
'WrappedException.context',
'WrappedException.message',
2015-09-21 19:48:16 -04:00
'WrappedException.stackTrace',
'WrappedException.wrapperMessage',
2015-09-21 19:48:16 -04:00
'WrappedValue#wrap()',
'WrappedValue',
2015-09-21 19:48:16 -04:00
'WrappedValue.wrapped',
'WrappedValue.wrapped=',
'WtfScopeFn:dart',
'applicationCommonBindings()',
'asNativeElements()',
'bind()',
'bootstrap():js',
'createNgZone()',
'forwardRef():js',
'inspectElement()',
'inspectNativeElement()',
'platform():js',
'platformBindings()',
'platformCommon()',
'resolveForwardRef():js',
'wtfCreateScope():js',
'wtfCreateScope:dart',
'wtfEndTimeRange():js',
'wtfEndTimeRange:dart',
'wtfLeave():js',
'wtfLeave:dart',
'wtfStartTimeRange():js',
'wtfStartTimeRange:dart',
'{AfterContentChecked}',
'{AfterContentInit}',
'{AfterViewChecked}',
'{AfterViewInit}',
'{ChangeDetector}',
'{ChangeDetector}.mode',
'{ChangeDetector}.mode=',
'{ChangeDetector}.parent',
'{ChangeDetector}.parent=',
'{ChangeDetector}.ref',
'{ChangeDetector}.ref=',
'{ControlValueAccessor}',
'{DoCheck}',
'{Form}',
'{HostViewRef}',
'{HostViewRef}.changeDetectorRef',
'{HostViewRef}.changeDetectorRef=',
2015-09-21 19:48:16 -04:00
'{IterableDifferFactory}',
'{IterableDiffer}',
'{KeyValueDifferFactory}',
'{KeyValueDiffer}',
'{OnChanges}',
'{OnDestroy}',
'{OnInit}',
'{PipeOnDestroy}',
'{PipeTransform}',
'{RenderElementRef}',
'{RenderElementRef}.renderBoundElementIndex',
'{RenderElementRef}.renderBoundElementIndex=',
'{RenderElementRef}.renderView',
'{RenderElementRef}.renderView=',
'{RenderEventDispatcher}',
'{Stream}',
'{Stream}.any()',
'{Stream}.asBroadcastStream()',
'{Stream}.asyncExpand()',
'{Stream}.asyncMap()',
'{Stream}.contains()',
'{Stream}.distinct()',
'{Stream}.drain()',
'{Stream}.elementAt()',
'{Stream}.every()',
'{Stream}.expand()',
'{Stream}.first',
'{Stream}.firstWhere()',
'{Stream}.fold()',
'{Stream}.forEach()',
'{Stream}.handleError()',
'{Stream}.isBroadcast',
'{Stream}.isEmpty',
'{Stream}.join()',
'{Stream}.last',
'{Stream}.lastWhere()',
'{Stream}.length',
'{Stream}.map()',
'{Stream}.pipe()',
'{Stream}.reduce()',
'{Stream}.single',
'{Stream}.singleWhere()',
'{Stream}.skip()',
'{Stream}.skipWhile()',
'{Stream}.take()',
'{Stream}.takeWhile()',
'{Stream}.timeout()',
'{Stream}.toList()',
'{Stream}.toSet()',
'{Stream}.transform()',
'{Stream}.where()',
'{Type}'
];
export function main() {
2015-09-21 19:48:16 -04:00
/**
var x = getSymbolsFromLibrary('ng');
x.sort();
var parts = [];
x.forEach((i) => parts.push(`'${i}'`));
print(`[ ${parts.join(',
')} ]`);
*/
describe('public API', () => {
2015-09-21 19:48:16 -04:00
it('should fail if public API has changed',
() => { expect(new SymbolsDiff(getSymbolsFromLibrary('ng'), NG_API).errors).toEqual([]); });
});
}