Repository navigation
fix(tests): supply AbortController in test_viewer_streaming camera modifier context - #8943
Cryptoteep wants to merge 1 commit into
Conversation
|
This is the same TEST-1354 camera fixture fix as #5692, whose original claim is here. This diff has the same |
|
Independent reproduction on main
The test fails during viewer startup before it reaches the movement assertions. This independently confirms the missing VM global addressed here. These results are against the stated main commit. I have not tested this PR's head. Synthetic loader/clock only, no browser or game files. AI-assisted reproduction and report. |
When running
node --test tests/test_viewer_streaming.cjs, the testShift speeds the camera up and Ctrl slows it down, on either side of the keyboardfailed with:The camera modifier test constructs a dedicated
vm.runInNewContextsandbox with mocked DOM and Three.js objects. WhenloadWorld()executes, it instantiatesnew AbortController().Supplying
AbortController,setTimeout, andclearTimeoutfromglobalThisin the mock context resolves the missing runtime globals.Verification
node --test tests/test_viewer_streaming.cjs: 57 passed, 0 failed.python -I scripts/check_no_game_data.py tests/test_viewer_streaming.cjs: clean.