Palette creator can save palettes to local storage

This commit is contained in:
jdescottes
2014-09-06 12:37:11 +02:00
parent e8db80a0ec
commit 8441f28ac1
25 changed files with 603 additions and 846 deletions

View File

@ -0,0 +1,23 @@
describe("Palette", function() {
beforeEach(function() {});
afterEach(function() {});
it("moves colors correctly", function() {
// when
var colors = [
'#000000',
'#111111',
'#222222'
];
var palette = new pskl.model.Palette('id', 'name', colors);
// then
palette.move(2,0);
// verify
expect(palette.get(0)).toBe('#222222');
expect(palette.get(1)).toBe('#000000');
expect(palette.get(2)).toBe('#111111');
});
});