Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.Emulation.SetVirtualTimePolicyRequest
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { SetVirtualTimePolicyRequest } = default.Emulation;

Properties

optional
budget: number

If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.

optional
maxVirtualTimeTaskStarvationCount: integer

If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.

optional
waitForNavigation: boolean

If set the virtual time policy change should be deferred until any frame starts navigating. Note any previous deferred policy change is superseded.

optional
initialVirtualTime: Network.TimeSinceEpoch

If set, base::Time::Now will be overriden to initially return this value.