MCPcopy Index your code
hub / github.com/ampproject/amphtml / awaitFrameAfter

Function awaitFrameAfter

testing/helpers/index.js:71–74  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

69 * @return {Promise<void>}
70 */
71export async function awaitFrameAfter(ms) {
72 await sleep(ms);
73 await afterRenderPromise();
74}
75
76const VOID_ELEMENTS = new Set([
77 'AREA',

Calls 2

sleepFunction · 0.70
afterRenderPromiseFunction · 0.70

Tested by

no test coverage detected