Keep a restored tracked aircraft when Cesium starts or resumes instead of treating it as new navigation

This commit is contained in:
German Khokhlov committed 2026-11-03 22:56:24 +04:00
1 parent 59a2e31aa8
commit 01ae045346
4 files changed
+73 -3

No files matched your search

+2 -2
View File
@@ -114,10 +114,10 @@ test('voice Cockpit entry reaches the camera only through stamping seams', () =>
assert.doesNotMatch(cockpitTracking, /trackedEntity\s*=/);
assert.doesNotMatch(cockpitTracking, /flyTo/);
// Seam 1: any tracker handoff stamps, so the adoption step is covered.
// Seam 1: a new tracker handoff stamps; restoring the session does not.
assert.match(
ui,
/viewer\.trackedEntityChanged\.addEventListener\(\s*\(entity\) => \{\s*if \(entity && !this\._disposed\)\s*this\._stampNavigation\(\{\s*cancelPendingSelection: false,?\s*\}\);/,
/viewer\.trackedEntityChanged\.addEventListener\(\s*\(entity\) => \{[\s\S]*?if \(\s*entity &&\s*!this\._disposed &&\s*entity\.gevSelectionOrigin !== 'share-restore'\s*\)\s*this\._stampNavigation\(\{\s*cancelPendingSelection: false,?\s*\}\);/,
'tracker handoff must stamp',
);
// Seam 2 is pinned by "Cockpit takeover invalidates deferred work" above.