diff --git a/modules/angular2/test/core/forms/model_spec.ts b/modules/angular2/test/core/forms/model_spec.ts index 460a2b8a19..039e8dccce 100644 --- a/modules/angular2/test/core/forms/model_spec.ts +++ b/modules/angular2/test/core/forms/model_spec.ts @@ -488,13 +488,24 @@ export function main() { a = new ControlArray([c]); }); - it("should be false after creating a control", () => { expect(a.pending).toEqual(false); }); + it("should be false after creating a control", () => { + expect(c.pending).toEqual(false); + expect(a.pending).toEqual(false); + }); - it("should be false after changing the value of the control", () => { + it("should be true after changing the value of the control", () => { c.markAsPending(); + expect(c.pending).toEqual(true); expect(a.pending).toEqual(true); }); + + it("should not update the parent when onlySelf = true", () => { + c.markAsPending({onlySelf: true}); + + expect(c.pending).toEqual(true); + expect(a.pending).toEqual(false); + }); }); describe("valueChanges", () => {