You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Component({selector: 'md-calendar-input'})
@View({template: '<input [value]="dateAsString" type="text"><calendar-popup (select)="updateDate($event)">#</calendar-popup>',directives: [CalendarPopup]})classMdCalendarInput{dateAsString:string;updateDate(newValue:Date){this.dateAsString=newValue.toString();}}
@Component({selector: 'calendar-popup'})
@View({template: ` <div style="overflow-y:scroll"> <md-calendar-month *for="month in visibleMonths"></md-calendar-month> </div>`})classCalendarPopup{}describe('calendar input',()=>{it('should update the input value when the popup selects a value',inject([TestComponentBuilder,AsyncCompleter],(tcb,async)=>{tcb.override(MdCalendarInput,component: {},view: {directives:[bind(CalendarPopUp).toClass(SpyCalendarPopUp)],excludeDirectives:[]}).override(CalendarPopup,view: {template: 'mock view'}).override(TestEnvComp,view: {directives: [MdCalendarInput],template: `...`},component: {services:[]}).create(TestEnvComp)}));});classTestComponentBuilder{constructor(parentInjector:Injector){}override(type:Type,{view:ViewOverride,component:ComponentOverride,directive:DirectiveOveride}):TestComponentBuilder;createAsync(type:Type,{}:View):ComponentProxy;// later with special zones that allow micro leap:// create(type:Type, {}:View):ComponentProxy;}classComponentProxy{componentInstancedetectChangeshostElementtriggerEvent// monitors when PUSH components call check() and checkOnce()changeDetectorSpy}...Overrides:
-containsexcludes,includes-needmergeprocess
Activity
jelbourn commentedon May 11, 2015
Related: #1609 and #1610
tbosch commentedon May 12, 2015
@matanlurey Do you have time to discuss this?
vicb commentedon May 12, 2015
This should hopefuly be available this week, see #1837
tbosch commentedon May 12, 2015
Talked to @matanlurey: Also add a feature to the
ComponentProxyto allow to query for a nested component.juliemr commentedon May 22, 2015
Summary of differences from the existing test_bed
This will eventually deprecate test_bed.
Am I missing anything?
2 remaining items
feat(tests): add TestComponentBuilder
feat(tests): add TestComponentBuilder
feat(tests): add TestComponentBuilder
feat(tests): add TestComponentBuilder
feat(tests): add TestComponentBuilder
feat(tests): add TestComponentBuilder
feat(tests): add TestComponentBuilder
feat(tests): add TestComponentBuilder
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.