Files
sanderling/pkg/spec/test/picker-stream-probe.ts
pj 944d1e9ad9 feat(chrome): read the page's exceptions and navigations, and hold the picker state across them
a page navigation replaces the runtime, so the seeded picker restarted the seed's stream at its first draw on every reload and a trace could not tell a reload from a generator repeating itself. the driver now drains the main-frame navigations it saw, reports the page's buffered uncaught errors so state.exceptions is the page's list on the goja host too, and carries the picker's draw position out of v8 and back in around each decision.
2026-08-16 17:44:29 +05:30

12 lines
473 B
TypeScript

// The seeded picker, over a page that gets navigated out from under it.
//
// internal/driver/chrome/picker_stream_test.go bundles this through the
// production web bundler and asks for one action at a time. `taps` over a page
// whose targets never move draws exactly once per call, so the actions it hands
// back ARE the seed's draw stream, and a stream that restarts is visible in
// them.
import { taps } from "../src/actions.ts";
export const actionsRoot = taps;