Skip to content

Commit

Permalink
fix(TiledGeometryLayer): add hideSkirt unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyGlt authored and Desplandis committed Jul 19, 2024
1 parent 0fa08cd commit 3738a06
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/unit/tiledGeometryLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import assert from 'assert';
import Extent from 'Core/Geographic/Extent';
import PlanarView from 'Core/Prefab/PlanarView';
import { CAMERA_TYPE } from 'Renderer/Camera';
import GlobeView from 'Core/Prefab/GlobeView';
import Coordinates from 'Core/Geographic/Coordinates';
import Renderer from './bootstrap';


Expand All @@ -25,4 +27,15 @@ describe('TiledGeometryLayer', function () {
viewOrtho.tileLayer.subdivision(viewOrtho, viewOrtho.tileLayer, viewOrtho.tileLayer.level0Nodes[0]);
assert.notEqual(viewOrtho.tileLayer.level0Nodes[0].screenSize, undefined);
});

it('should allow hide skirt', function () {
// planar view
const viewPlanar = new PlanarView(renderer.domElement, extent, { renderer, hideSkirt: true });
assert.ok(viewPlanar);

// globe view
const placement = { coord: new Coordinates('EPSG:4326', 4.631512, 43.675626), range: 3919 };
const viewGlobe = new GlobeView(renderer.domElement, placement, { renderer, hideSkirt: true });
assert.ok(viewGlobe);
});
});

0 comments on commit 3738a06

Please sign in to comment.