Cocos 3.8.8 browser acceptance¶
After building the extension and running the Python unit tests, run this from the repository root on Apple Silicon.
ELECTRON_RUN_AS_NODE=1 /usr/bin/arch -arm64 \
/Applications/CocosCreator/Creator/3.8.8/CocosCreator.app/Contents/MacOS/CocosCreator \
tests/engine-runtime/run.cjs
Set CHROME_BINARY to an alternate Chromium-compatible executable or COCOS_EXTENSION_DIST to a frozen copy of the compiled extension if needed. The runner builds the HTML5 engine from the installed Creator distribution, uses a disposable browser profile, and loads the repository's Main.scene and Other.scene through Cocos deserialization. Its final JSON line includes the engine version, tested extension fingerprint, and UTF-8 response sizes at depth 3. The capacity case creates 1,000 child nodes in memory, then verifies that the response includes at most 1,000 nodes counting the scene root and reports truncation.
This covers the compiled scene read handler on real Cocos objects. Editor IPC, Asset DB, undo, save/reopen, the panel, and live MCP have separate acceptance checks.