Remove 'rgb(255.0,0,0)' from the invalid color list

`rgb(255.0,0,0)` is a valid color value
This commit is contained in:
Frederic Junod
2018-01-12 14:55:48 +01:00
parent bb0904f20d
commit 5ade602183

View File

@@ -121,7 +121,7 @@ describe('ol.color', function() {
});
it('throws an error on invalid colors', function() {
const invalidColors = ['tuesday', '#12345', '#1234567', 'rgb(255.0,0,0)'];
const invalidColors = ['tuesday', '#12345', '#1234567'];
let i, ii;
for (i = 0, ii = invalidColors.length; i < ii; ++i) {
expect(function() {