mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
Keep a restored tracked aircraft when Cesium starts or resumes instead of treating it as new navigation
This commit is contained in:
1 parent
59a2e31aa8
commit
01ae045346
4 files changed
+73
-3
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user