fix(forms): ensure select model updates in firefox and ie

Closes #6573

Closes #8148
This commit is contained in:
Kara Erickson
2016-04-20 15:50:50 -07:00
committed by Kara
parent 8db62151d2
commit c3daccd83b
2 changed files with 9 additions and 3 deletions

View File

@ -484,7 +484,7 @@ export function main() {
expect(sfOption.nativeElement.selected).toBe(true);
select.nativeElement.value = "NYC";
dispatchEvent(select.nativeElement, "input");
dispatchEvent(select.nativeElement, "change");
expect(fixture.debugElement.componentInstance.form.value).toEqual({"city": 'NYC'});
expect(sfOption.nativeElement.selected).toBe(false);
@ -539,7 +539,7 @@ export function main() {
expect(nycOption.nativeElement.selected).toBe(true);
select.nativeElement.value = "2: Object";
dispatchEvent(select.nativeElement, "input");
dispatchEvent(select.nativeElement, "change");
fixture.detectChanges();
TimerWrapper.setTimeout(() => {
expect(testComp.selectedCity['name']).toEqual("Buffalo");