Skip to content

Clock / fake timers (install, setFixedTime, fastForward, pauseAt) #1198

@ChrisRoyse

Description

@ChrisRoyse

Parent: #1197 (master #1063).

What

Install a controllable clock for the page (Date, setTimeout/Interval, requestAnimationFrame) via an init-script shim and/or Emulation.setVirtualTimePolicy, with setFixedTime/fastForward/pauseAt. Playwright page.clock.

Where

New crates/synapse-a11y/src/cdp_clock.rs; pairs with addInitScript (JS-eval epic).

Done when (FSV)

  • Date.now()/new Date() reflect the installed time (via evaluate).
  • A pending setTimeout fires only after fastForward by its delay.
  • pauseAt freezes time at the target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:claudeClaimed by Claude agentarea:a11ysynapse-a11yphase:m3M3 — Reflex + MCP surfacepriority:p3Low — cosmetic / far-futuresource:agentFiled by an AI agenttype:taskAtomic work item

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions