Permits brush size of only 1-32 pixels.

This commit is contained in:
Smie
2016-11-21 12:53:14 -07:00
parent a560872df7
commit 8cb7a4aaf6
3 changed files with 5 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ describe("PenSize test suite", function() {
penSizeService.init();
// MAX_VALUE is 4
penSizeService.setPenSize(5);
penSizeService.setPenSize(33);
expect(penSizeService.getPenSize()).toBe(1);
// MIN_VALUE is 1
penSizeService.setPenSize(0);
@@ -70,4 +70,4 @@ describe("PenSize test suite", function() {
// no event fired
expect($.publish.calls.any()).toBe(false);
});
});
});