Skip to content

Commit

Permalink
doc(examples): Add documentation on some test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Desplandis authored and jailln committed Jul 26, 2023
1 parent 0881b2d commit cba2146
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/functional/source_stream_wfs_25d.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ describe('source_stream_wfs_25d', function _() {
});

it('should pick the correct building', async () => {
// test picking
// Test picking a feature geometry property from `wfsBuilding` layer.
// Picking is done at the given screen coordinates.
const buildingId = await page.evaluate(() => picking({ x: 97, y: 213 }));
assert.equal(buildingId.geojson.id, 'batiment.BATIMENT0000000241634062');
});
Expand Down
4 changes: 4 additions & 0 deletions test/functional/view_25d_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ describe('view_25d_map', function _() {
});

it('should subdivise planar correctly', async () => {
// Test that there is a given number of "visible" tiles (i.e.
// `material.visible` property of a tile is set) for each tested level.
// Uses the property `view.tileLayer.info.displayed.tiles` of type
// InfoTiledGeometryLayer to retrieve such information
const displayedTiles = await page.evaluate(() => {
r = {};
[...view.tileLayer.info.displayed.tiles]
Expand Down

0 comments on commit cba2146

Please sign in to comment.