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

Method wait

testing/helpers/service.js:242–246  ·  view source on GitHub ↗
(duration)

Source from the content-addressed store, hash-verified

240 }
241
242 wait(duration) {
243 return new Promise((resolve) => {
244 setTimeout(resolve, duration);
245 });
246 }
247
248 /**
249 * Helper to support providing already-selected elements to methods.

Callers 11

waitForFunction · 0.80
findElementMethod · 0.80
findElementsMethod · 0.80
findElementXPathMethod · 0.80
findElementsXPathMethod · 0.80
test-amp-bind.jsFile · 0.80
test-amp-script.jsFile · 0.80
scope-require.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected