HS-plan: log cluster 26 landed (304a52d2, worktree cherry-pick)
This commit is contained in:
@@ -101,7 +101,7 @@ Orchestrator cherry-picks worktree commits onto `architecture` one at a time; re
|
||||
|
||||
### Bucket C: feature stubs (DOM observer mocks)
|
||||
|
||||
26. **[pending] resize observer mock + `on resize`** — 3 tests. Add a minimal `ResizeObserver` mock to `hs-run-filtered.js`, plus parse/compile `on resize`. Expected: +3.
|
||||
26. **[done (+3)] resize observer mock + `on resize`** — 3 tests. Add a minimal `ResizeObserver` mock to `hs-run-filtered.js`, plus parse/compile `on resize`. Expected: +3.
|
||||
|
||||
27. **[pending] intersection observer mock + `on intersection`** — 3 tests. Mock `IntersectionObserver`; compile `on intersection` with margin/threshold modifiers. Expected: +3.
|
||||
|
||||
@@ -175,6 +175,9 @@ Many tests are `SKIP (untranslated)` because `tests/playwright/generate-sx-tests
|
||||
|
||||
(Reverse chronological — newest at top.)
|
||||
|
||||
### 2026-04-24 — cluster 26 resize observer (worktree agent cherry-pick)
|
||||
- **304a52d2** (from worktree `worktree-agent-a8983e935d0d7a870` / `aea5f7d2`) — `HS: resize observer mock + on resize (+3 tests)`. `tests/hs-run-filtered.js`: `El.style` becomes a `Proxy` that fires a synthetic `resize` DOM event (detail carries `{width, height}` parsed from the current inline style) whenever `width`/`height` is written via direct property assignment OR `setProperty`. `ResizeObserver` no-op stub replaced by `HsResizeObserver` maintaining a per-element callback registry in `globalThis.__hsResizeRegistry`; added `ResizeObserverEntry` stub. `on resize` needs no parser/compiler work — `parse-compound-event-name` already accepts it and `hs-on` binds via `dom-listen`. Generator: new pattern translates `(page.)?evaluate(() => { document.(getElementById|querySelector)(...).style.PROP = 'VAL'; })` into `(host-set! (host-get TARGET "style") "PROP" "VAL")`. Suite hs-upstream-resize: 0/3 → 3/3. Smoke 0-195 unchanged at 165/195.
|
||||
|
||||
### 2026-04-24 — cluster 30 logAll config (worktree agent cherry-pick)
|
||||
- **64bcefff** (from worktree `worktree-agent-a2bf303fd00e2fd4b` / `e50c3e6e`) — `HS: logAll config (+1 test)`. Runtime additions in `runtime.sx`: `_hs-config-log-all` flag + `_hs-log-captured` list + setters `hs-set-log-all!`, `hs-clear-log-captured!`, reader `hs-get-log-captured`, emitter `hs-log-event!` which both appends and forwards to `(host-call (host-global "console") "log" msg)`. `integration.sx` `hs-activate!` now emits `(hs-log-event! "hyperscript:init")` as the first action inside its when-block. Generator `tests/playwright/generate-sx-tests.py` detects the upstream body pattern (contains both `logAll` and `_hyperscript.config.logAll`) and emits a hand-rolled deftest: reset captured list → toggle log-all on → build detached `_="on click add .foo"` div → hs-boot-subtree! → assert `(some (fn (l) (string-contains? l "hyperscript:")) captured)`. Suite hs-upstream-core/bootstrap: 19/26 → 20/26. Smoke 0-195: 164 → 165.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user