MCPcopy
hub / github.com/microsoft/playwright / runFor

Method runFor

packages/injected/src/clock.ts:169–176  ·  view source on GitHub ↗
(ticks: number)

Source from the content-addressed store, hash-verified

167 }
168
169 async runFor(ticks: number) {
170 this._replayLogOnce();
171 if (ticks < 0)
172 throw new TypeError('Negative ticks are not supported');
173 await this._runWithDisabledRealTimeSync(async () => {
174 await this._runTo(shiftTicks(this._now.ticks, ticks));
175 });
176 }
177
178 private async _runTo(to: Ticks) {
179 to = Math.ceil(to) as Ticks;

Callers

nothing calls this directly

Calls 4

_replayLogOnceMethod · 0.95
_runToMethod · 0.95
shiftTicksFunction · 0.85

Tested by

no test coverage detected