Commit 8b377e3
test(parparvm): update facade contract for ImageData.writeArgbBuffer delegation
Commit 364c239 ("fix(js-port): fade transition rgbBuffer write reaches
live ImageData") replaced HTML5Implementation.createImageData's
worker-side ``JavaScriptImageDataAdapter.writeArgbToRgba`` unpack-and-set
loop with a single host-side ``ImageData.writeArgbBuffer(...)`` round
trip, because the worker→host marshalling clones any returned
``Uint8ClampedArray`` for read-perf reasons (``hostResult`` in
browser_bridge.js) — so ``data.set(arr)`` on the worker-side
ImageData.data wrote into a phantom buffer and ``putImageData`` rendered
transparent black.
JavaScriptRuntimeFacadeTest still asserted the old delegation contract
via ``contains("JavaScriptImageDataAdapter.writeArgbToRgba(")``, which
no longer holds; the test was correctly catching the architectural
change. Update the assertion to look for ``.writeArgbBuffer(`` (the
new delegation point), with a comment pointing at the fade-fix commit
so anyone removing this delegation is forced to look at why the path
was moved host-side. The read direction
(``JavaScriptImageDataAdapter.readRgbaToArgb``) is unchanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4de06d1 commit 8b377e3
1 file changed
Lines changed: 6 additions & 2 deletions
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
221 | 225 | | |
222 | 226 | | |
223 | 227 | | |
| |||
0 commit comments