Add alpha default value to ol.Color array form

This commit is contained in:
jonataswalker committed 2016-03-08 12:43:42 -03:00
1 parent 8c487d3036
commit 2564bb3e58
2 files changed
+7 -2

No files matched your search

+4
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)');
});
});
});