diff --git a/test/integration/render/scenarios/regression/cartocolor-subpalette/reference.png b/test/integration/render/scenarios/regression/cartocolor-subpalette/reference.png new file mode 100644 index 000000000..0bb3efe72 Binary files /dev/null and b/test/integration/render/scenarios/regression/cartocolor-subpalette/reference.png differ diff --git a/test/integration/render/scenarios/regression/cartocolor-subpalette/scenario.js b/test/integration/render/scenarios/regression/cartocolor-subpalette/scenario.js new file mode 100644 index 000000000..01ac91116 --- /dev/null +++ b/test/integration/render/scenarios/regression/cartocolor-subpalette/scenario.js @@ -0,0 +1,19 @@ +const map = new CartoMap({ + container: 'map', + background: 'black' +}); + +const source = new carto.source.GeoJSON(sources['points3']); +const viz = new carto.Viz(` + color: ramp(top(@prop, @num), CB_BLUES) + width: 50 + @prop: $cat + @num: 2 +`); +const layer = new carto.Layer('layer', source, viz); + +viz.variables.num.blendTo(2, 0); +layer.addTo(map); +layer.on('loaded', () => { + window.loaded = true; +});