Skip to content

Commit abebb07

Browse files
committed
update
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
1 parent 5a4242a commit abebb07

1 file changed

Lines changed: 0 additions & 42 deletions

File tree

test/browser/layer-tests/raster-tile-layer-specs.js

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -162,43 +162,6 @@ test('#RasterTileLayer -> configuration and visual settings', t => {
162162
t.end();
163163
});
164164

165-
test('#RasterTileLayer -> color configuration and visual channels', t => {
166-
const layer = new RasterTileLayer({id: 'test-layer', dataId: 'stac-data'});
167-
168-
// Test default state
169-
t.deepEqual(layer.visualChannels, {}, 'should have empty visual channels by default');
170-
171-
// Test with simple color range (no legends)
172-
layer.updateLayerVisConfig({
173-
colorRange: {colors: ['#FF0000', '#00FF00', '#0000FF']}
174-
});
175-
t.deepEqual(layer.visualChannels, {}, 'should have empty channels without color legends');
176-
177-
// Test with categorical color legends
178-
const colorRange = {
179-
colors: ['#FF0000', '#00FF00', '#0000FF'],
180-
colorLegends: {
181-
water: [0, 0, 255],
182-
land: [0, 255, 0],
183-
urban: [255, 0, 0]
184-
}
185-
};
186-
layer.updateLayerVisConfig({colorRange});
187-
t.deepEqual(layer.config.visConfig.colorRange, colorRange, 'should set color range');
188-
t.ok(layer.visualChannels.color, 'should have color channel with categorical legends');
189-
190-
// Test with empty color legends object
191-
layer.updateLayerVisConfig({
192-
colorRange: {
193-
colors: ['#FF0000', '#00FF00', '#0000FF'],
194-
colorLegends: {}
195-
}
196-
});
197-
t.ok(layer.visualChannels.color, 'should have color channel even with empty legends object');
198-
199-
t.end();
200-
});
201-
202165
test('#RasterTileLayer -> metadata handling', t => {
203166
const layer = new RasterTileLayer({id: 'test-layer', dataId: 'stac-data'});
204167

@@ -285,11 +248,6 @@ test('#RasterTileLayer -> edge cases and error handling', t => {
285248
const noDataLayers = layer.renderLayer({...createRenderOpts(MOCK_STAC_DATASET), data: null});
286249
t.deepEqual(noDataLayers, [], 'should return empty array when no data');
287250

288-
// Test with null mapState (should throw)
289-
t.throws(() => {
290-
layer.renderLayer({...createRenderOpts(MOCK_STAC_DATASET), mapState: null});
291-
}, 'should throw error when mapState is null');
292-
293251
// Test malformed metadata (should not throw)
294252
t.doesNotThrow(() => {
295253
layer.updateLayerMeta({type: 'raster-tile', metadata: {type: 'Feature'}});

0 commit comments

Comments
 (0)