2015-08-26 14:41:41 -04:00
|
|
|
import {
|
|
|
|
ChangeDetector,
|
|
|
|
ChangeDetectorRef,
|
|
|
|
ProtoChangeDetector,
|
|
|
|
DynamicChangeDetector
|
|
|
|
} from 'angular2/src/core/change_detection/change_detection';
|
|
|
|
|
2015-10-01 23:47:49 -04:00
|
|
|
import {Renderer, RenderEventDispatcher} from 'angular2/src/core/render/api';
|
2015-10-02 10:37:23 -04:00
|
|
|
import {DirectiveResolver} from 'angular2/src/core/linker/directive_resolver';
|
|
|
|
|
|
|
|
import {AppView} from 'angular2/src/core/linker/view';
|
|
|
|
import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
|
|
|
import {AppViewManager} from 'angular2/src/core/linker/view_manager';
|
|
|
|
import {AppViewPool} from 'angular2/src/core/linker/view_pool';
|
|
|
|
import {AppViewListener} from 'angular2/src/core/linker/view_listener';
|
|
|
|
import {ProtoViewFactory} from 'angular2/src/core/linker/proto_view_factory';
|
2015-08-26 14:41:41 -04:00
|
|
|
import {DomAdapter} from 'angular2/src/core/dom/dom_adapter';
|
|
|
|
import {ClientMessageBroker} from 'angular2/src/web_workers/shared/client_message_broker';
|
|
|
|
|
|
|
|
import {
|
|
|
|
ElementInjector,
|
|
|
|
PreBuiltObjects,
|
|
|
|
ProtoElementInjector
|
2015-10-02 10:37:23 -04:00
|
|
|
} from 'angular2/src/core/linker/element_injector';
|
2015-08-26 14:41:41 -04:00
|
|
|
|
2015-10-13 03:29:13 -04:00
|
|
|
import {SpyObject, proxy} from 'angular2/testing_internal';
|
2015-08-26 14:41:41 -04:00
|
|
|
|
|
|
|
export class SpyDependencyProvider extends SpyObject {}
|
|
|
|
|
|
|
|
export class SpyChangeDetector extends SpyObject {
|
|
|
|
constructor() { super(DynamicChangeDetector); }
|
|
|
|
}
|
|
|
|
|
2015-09-30 18:28:26 -04:00
|
|
|
export class SpyChangeDispatcher extends SpyObject {}
|
|
|
|
|
2015-08-26 14:41:41 -04:00
|
|
|
export class SpyIterableDifferFactory extends SpyObject {}
|
|
|
|
|
|
|
|
export class SpyDirectiveResolver extends SpyObject {
|
|
|
|
constructor() { super(DirectiveResolver); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyView extends SpyObject {
|
|
|
|
constructor() { super(AppView); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyElementRef extends SpyObject {
|
|
|
|
constructor() { super(ElementRef); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyAppViewManager extends SpyObject {
|
|
|
|
constructor() { super(AppViewManager); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyRenderer extends SpyObject {
|
2015-10-06 22:39:44 -04:00
|
|
|
constructor() {
|
|
|
|
// Note: Renderer is an abstract class,
|
|
|
|
// so we can't generates spy functions automatically
|
|
|
|
// by inspecting the prototype...
|
|
|
|
super(Renderer);
|
|
|
|
this.spy('setEventDispatcher');
|
|
|
|
this.spy('destroyView');
|
|
|
|
this.spy('createView');
|
|
|
|
this.spy('createProtoView');
|
|
|
|
this.spy('hydrateView');
|
|
|
|
this.spy('dehydrateView');
|
|
|
|
this.spy('attachFragmentAfterElement');
|
|
|
|
this.spy('attachFragmentAfterFragment');
|
|
|
|
this.spy('detachFragment');
|
|
|
|
}
|
2015-08-26 14:41:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyAppViewPool extends SpyObject {
|
|
|
|
constructor() { super(AppViewPool); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyAppViewListener extends SpyObject {
|
|
|
|
constructor() { super(AppViewListener); }
|
|
|
|
}
|
|
|
|
|
2015-10-01 13:07:49 -04:00
|
|
|
export class SpyProtoViewFactory extends SpyObject {
|
|
|
|
constructor() { super(ProtoViewFactory); }
|
|
|
|
}
|
|
|
|
|
2015-08-26 14:41:41 -04:00
|
|
|
export class SpyProtoElementInjector extends SpyObject {
|
|
|
|
constructor() { super(ProtoElementInjector); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyElementInjector extends SpyObject {
|
|
|
|
constructor() { super(ElementInjector); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyPreBuiltObjects extends SpyObject {
|
|
|
|
constructor() { super(PreBuiltObjects); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyDomAdapter extends SpyObject {
|
|
|
|
constructor() { super(DomAdapter); }
|
2015-09-02 18:07:31 -04:00
|
|
|
}
|
|
|
|
|
2015-09-25 12:43:21 -04:00
|
|
|
export class SpyRenderEventDispatcher extends SpyObject {
|
|
|
|
constructor() {
|
|
|
|
// Note: RenderEventDispatcher is an interface,
|
|
|
|
// so we can't pass it to super() and have to register
|
|
|
|
// the spy methods on our own.
|
|
|
|
super();
|
|
|
|
this.spy('dispatchRenderEvent');
|
|
|
|
}
|
2015-11-05 17:58:24 -05:00
|
|
|
}
|