MCPcopy
hub / github.com/rrweb-io/rrweb / waitForRAF

Function waitForRAF

packages/rrweb/test/utils.ts:733–741  ·  view source on GitHub ↗
(pageOrFrame: PageOrFrameWithEvaluate)

Source from the content-addressed store, hash-verified

731}
732
733export async function waitForRAF(pageOrFrame: PageOrFrameWithEvaluate) {
734 return await pageOrFrame.evaluate(() => {
735 return new Promise((resolve) => {
736 requestAnimationFrame(() => {
737 requestAnimationFrame(resolve);
738 });
739 });
740 });
741}
742
743export async function waitForIFrameLoad(
744 page: puppeteer.Frame | puppeteer.Page,

Callers 13

record.test.tsFile · 0.90
replayer.test.tsFile · 0.90
dialog.test.tsFile · 0.90
webgl.test.tsFile · 0.90
waitForVideoToFunction · 0.90
video.test.tsFile · 0.90
dialog.test.tsFile · 0.90
hover.test.tsFile · 0.90
webgl.test.tsFile · 0.90

Calls 2

requestAnimationFrameFunction · 0.85
evaluateMethod · 0.80

Tested by 1

waitForVideoToFunction · 0.72