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

Function waitForAnimationPlay

test/integration/test-video-players-helper.js:469–478  ·  view source on GitHub ↗
(iconElement)

Source from the content-addressed store, hash-verified

467 }
468
469 function waitForAnimationPlay(iconElement) {
470 return poll(
471 'animation play',
472 () => {
473 return iconElement.classList.contains('amp-video-eq-play');
474 },
475 undefined,
476 timeout
477 );
478 }
479 });
480 });
481

Callers 1

Calls 2

pollFunction · 0.90
containsMethod · 0.45

Tested by

no test coverage detected