MCPcopy
hub / github.com/ampproject/amphtml / waitFor

Function waitFor

testing/helpers/service.js:82–89  ·  view source on GitHub ↗
(callback, errorMessage)

Source from the content-addressed store, hash-verified

80 * @return {!Promise}
81 */
82export function waitFor(callback, errorMessage) {
83 return poll(
84 errorMessage,
85 callback,
86 undefined /* opt_onError */,
87 200 /* opt_timeout */
88 );
89}
90
91/**
92 * Gets the initial values of an Element's animation state.

Callers 15

test-ampdoc.jsFile · 0.90
waitForSelectedFunction · 0.90
waitForRenderFunction · 0.90
waitRenderedFunction · 0.90
waitRenderedFunction · 0.90
mountElementFunction · 0.90
waitForDataFunction · 0.90

Calls 1

pollFunction · 0.90

Tested by

no test coverage detected