Handle named colors as string in equal operator

This commit is contained in:
Seba Kerckhof committed 2021-07-27 18:54:08 +02:00
1 parent 1dc336e459
commit db57d9bf89
2 files changed
+9

No files matched your search

@@ -250,6 +250,9 @@ describe('ol.style.expressions', function () {
expect(expressionToGlsl(context, ['==', 10, ['get', 'attr4']])).to.eql(
'(10.0 == a_attr4)'
);
expect(expressionToGlsl(context, ['==', 'red', ['get', 'attr4']])).to.eql(
'(0.0 == a_attr4)'
);
expect(expressionToGlsl(context, ['!=', 10, ['get', 'attr4']])).to.eql(
'(10.0 != a_attr4)'
);