Rehearse every catalog layer across two engines in the unit tests

lifecycleRehearsal.test.mjs takes each of the 38 catalog layers from
attach on one fake engine through enable, detach and that engine's
destruction to attach on a second engine, resume and disable. It checks
that the engine left keeps no drawn sets, listeners, credits, input
suspensions, continuous renders or follows; that nothing writes to it
afterwards; that a layer waiting for the camera restore reads no source
before resumeViewport; that a disabled layer stays hidden after attach;
and which layers still read the viewer argument, a list that may only
shrink.

The catalog takes the displays and scene services a test supplies, and
the pick registry lists its owners. Two defects it found are fixed:
Active Fires loaded its heatmap before the camera restore it was told to
wait for, and the wind inspection marker asked Cesium's scene for a
render on any engine instead of the engine's render request.
This commit is contained in:
German Khokhlov committed 2026-11-10 15:01:59 +04:00
1 parent 9c2a2d6951
commit 20ad9b41b3
6 files changed
+621 -15

No files matched your search

+2 -1
View File
@@ -28,7 +28,8 @@ export function createWindInspectionMarker({
removeRender = null;
if (shown()) store.publish(null);
marker = null;
viewer?.scene?.requestRender?.();
if (engine) engine.render.request('wind-inspection');
else viewer?.scene?.requestRender?.();
};
return {
show(position) {