Add the browser test harness and manual audio checklist #4
Labels
No labels
NaNs
area/audio
area/build
area/docs
area/dsh
area/engine
area/security
area/ui
needs-operator
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-whale-noises#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Make the parts that can be tested headlessly testable, and give the parts that cannot a written protocol so verification is not improvisation.
Scope
test/helpers/load-client.mjs— install a fakeglobalThis.window.__ModuleLoader__, importlib/client.js, return the registered factory + module exports. This is how pure helpers inside the bundle get unit-tested without a bundler (decision D2).test/client-loader.test.mjs— the bundle registers iddsh-whale-noises, exportsapply, and declares its injects.scripts/env-probe.mjs— prints a copy-paste browser-console snippet that reportsAudioContext,decodeAudioData,navigator.gpu, OPFS (createSyncAccessHandle),crossOriginIsolated, and storage estimate.docs/manual-audio-checklist.md— the checklist from AGENTS.md, with a results table (browser, OS, engine, pass/fail, notes) and a place to paste measurements.npm run check.Acceptance
npm run checkfails if the client bundle stops registering / stops exportingapply.Notes
Done in
b9430b0.test/helpers/load-client.mjsruns the real built bundle through a Loader stub;scripts/env-probe.mjsprints a copy-paste capability table (AudioContext/decode/OPFS/WASM SIMD/WebGPU/isolation);docs/manual-audio-checklist.mdhas core, local-engine, host-budget and browser-limit tables. Whole suite green in CI run #4.