Skip to content

Commit

Permalink
Remove webgl1 tests (#8852)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen authored and Pessimistress committed May 6, 2024
1 parent 6306bcc commit db69191
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {testLayer, generateLayerTests, testInitializeLayer} from '@deck.gl/test-
import {makeSpy} from '@probe.gl/test-utils';
import {GPUGridLayer} from '@deck.gl/aggregation-layers';
import GPUGridCellLayer from '@deck.gl/aggregation-layers/gpu-grid-layer/gpu-grid-cell-layer';
import {setupSpysForWebGL1, restoreSpies} from './webgl1-spies-utils';
import {device} from '@deck.gl/test-utils';

const SAMPLE_PROPS = {
Expand All @@ -33,7 +32,6 @@ const SAMPLE_PROPS = {
};

test('GPUGridLayer', t => {
const webgl1Spies = setupSpysForWebGL1(device);
const testCases = generateLayerTests({
Layer: GPUGridLayer,
sampleProps: SAMPLE_PROPS,
Expand All @@ -45,14 +43,10 @@ test('GPUGridLayer', t => {
});

testLayer({Layer: GPUGridLayer, testCases, onError: t.notOk});

restoreSpies(webgl1Spies);
t.end();
});

test('GPUGridLayer#renderLayers', t => {
const webgl1Spies = setupSpysForWebGL1(device);

makeSpy(GPUGridLayer.prototype, '_updateAggregation');

const layer = new GPUGridLayer(SAMPLE_PROPS);
Expand All @@ -68,12 +62,10 @@ test('GPUGridLayer#renderLayers', t => {
t.ok(GPUGridLayer.prototype._updateAggregation.called, 'should call _updateAggregation');
GPUGridLayer.prototype._updateAggregation.restore();

restoreSpies(webgl1Spies);
t.end();
});

test('GPUGridLayer#updates', t => {
const webgl1Spies = setupSpysForWebGL1(device);
testLayer({
Layer: GPUGridLayer,
onError: t.notOk,
Expand Down Expand Up @@ -127,6 +119,5 @@ test('GPUGridLayer#updates', t => {
]
});

restoreSpies(webgl1Spies);
t.end();
});

This file was deleted.

0 comments on commit db69191

Please sign in to comment.