[Fixed Position] Update specs

Update specs for Fixed Position view to ensure code coverage
after changes for resize/reposition behavior, WTD-882.
This commit is contained in:
Victor Woeltjen
2015-02-24 12:02:43 -08:00
parent e2af1e85a1
commit 91754f76ad
4 changed files with 53 additions and 0 deletions

View File

@@ -47,6 +47,13 @@ define(
proxy.order("top");
expect(testElements).toEqual([{}, {}, {}, testElement]);
});
it("ensures x/y values are non-negative", function () {
proxy.x(-1);
proxy.y(-400);
expect(proxy.x()).toEqual(0);
expect(proxy.y()).toEqual(0);
});
});
}
);