Fix gif export transparency issue

This commit is contained in:
jdescottes
2015-04-27 22:23:35 +02:00
parent 8ae14281cc
commit 3f181c6248
4 changed files with 410 additions and 29 deletions

View File

@@ -5,25 +5,25 @@ describe("Color utils", function() {
it("returns a color when provided with array of colors", function() {
// when/then
var unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#ffffff', '#feffff', '#fdffff']);
var unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#ffff00', '#feff00', '#fdff00']);
// verify
expect(unusedColor).toBe('#FCFFFF');
expect(unusedColor).toBe('#FCFF00');
// when/then
unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#fcffff', '#feffff', '#fdffff']);
unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#fcff00', '#feff00', '#fdff00']);
// verify
expect(unusedColor).toBe('#FFFFFF');
expect(unusedColor).toBe('#FFFF00');
});
it("returns a color for an empty array", function() {
// when/then
var unusedColor = pskl.utils.ColorUtils.getUnusedColor([]);
// verify
expect(unusedColor).toBe('#FFFFFF');
expect(unusedColor).toBe('#FFFF00');
// when/then
unusedColor = pskl.utils.ColorUtils.getUnusedColor();
// verify
expect(unusedColor).toBe('#FFFFFF');
expect(unusedColor).toBe('#FFFF00');
});
});