mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-22 03:02:20 +00:00
Build test engines from the shared fake instead of literals
Tests that made their own engine object now use createFakeEngine() with its scripting hooks or an override of the one member under test, so they follow the contract when it changes. 125 such literals in 74 test files go down to two that are not globe engines on purpose; report-qa-harness counts them, and the baseline keeps the number from growing.
This commit is contained in:
1 parent
3c304502a0
commit
225c1c25c7
76 files changed
+668
-564
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { createFakeEngine } from '../../globe/testing/fakeEngine.js';
|
||||
// CCTV icon thinning must use the camera's real vertical FOV. In a 16:9
|
||||
// window with Cesium's default fov 60deg the vertical FOV is about 36deg;
|
||||
// main read it from viewer.camera.frustum.fovy. Two cameras 17 m apart seen
|
||||
@@ -33,7 +34,7 @@ test('icon thinning uses the camera vertical FOV, not a pi/3 fallback', () => {
|
||||
distance: () => 2000,
|
||||
cameraPose: () => pose,
|
||||
fovy: () => pose.fovy,
|
||||
engine: { camera: { pose: () => pose } },
|
||||
engine: createFakeEngine({ fovy: FOVY_16_9 }),
|
||||
};
|
||||
const { refreshHorizonCulling } = createRendering({
|
||||
state,
|
||||
|
||||
Reference in new issue
Block a user