feat(forms): added support for status classes

This commit is contained in:
vsavkin
2015-06-03 11:56:01 -07:00
parent 96cadcc29e
commit 3baf815d76
13 changed files with 167 additions and 38 deletions

View File

@ -203,16 +203,14 @@ export function main() {
});
describe("dirty", () => {
var c,g;
var c, g;
beforeEach(() => {
c = new Control('value');
g = new ControlGroup({"one": c});
});
it("should be false after creating a control", () => {
expect(g.dirty).toEqual(false);
});
it("should be false after creating a control", () => { expect(g.dirty).toEqual(false); });
it("should be false after changing the value of the control", () => {
c.markAsDirty();
@ -442,16 +440,14 @@ export function main() {
});
describe("dirty", () => {
var c,a;
var c, a;
beforeEach(() => {
c = new Control('value');
a = new ControlArray([c]);
});
it("should be false after creating a control", () => {
expect(a.dirty).toEqual(false);
});
it("should be false after creating a control", () => { expect(a.dirty).toEqual(false); });
it("should be false after changing the value of the control", () => {
c.markAsDirty();