Add alpha default value to ol.Color array form

This commit is contained in:
jonataswalker
2016-03-08 11:12:23 -03:00
parent 8c487d3036
commit 2564bb3e58
2 changed files with 7 additions and 2 deletions

View File

@@ -129,6 +129,10 @@ describe('ol.color', function() {
expect(ol.color.toString([1.2, 2.5, 3.7, 0.4])).to.be('rgba(1,3,4,0.4)');
});
it('sets default alpha value if undefined', function() {
expect(ol.color.toString([0, 0, 0])).to.be('rgba(0,0,0,1)');
});
});
});