Repository navigation
test_viewer_streaming: give the Shift/Ctrl freecam sandbox AbortController and timers - #5818
Closed
Joaovenera wants to merge 1 commit into
Closed
Joaovenera wants to merge 1 commit into
Joaovenera wants to merge 1 commit into
Conversation
…oller and timers viewer/index.html's loadWorld() builds an AbortController, but the vm sandbox of the "Shift speeds the camera up and Ctrl slows it down" test did not pass it (or setTimeout/clearTimeout), so the test failed with "ReferenceError: AbortController is not defined". The other two sandboxes in the file already pass them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: #5781 (comment)
What and why
tests/test_viewer_streaming.cjsfailed 1 of 57 onmain(561b65a): "Shift speeds the camera up and Ctrl slows it down, on either side of the keyboard" threwReferenceError: AbortController is not defined.loadWorld()inviewer/index.html(line 99) builds anAbortController, but this test'svm.runInNewContextsandbox did not pass it. The other two sandboxes in the file already passAbortControllerand the timers. This addsAbortController, setTimeout, clearTimeoutto the sandbox of this test.Tested
node --test tests/test_viewer_streaming.cjson Node 24.3.0, Windows 11: 56/57 before, 57/57 after. No GPU involved (the test uses a synthetic loader and clock).AI-assisted: yes (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change.)