MCPcopy Create free account
hub / github.com/ampproject/amphtml / getPropertiesForTesting

Function getPropertiesForTesting

ads/google/ima/ima-video.js:1464–1495  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1462 * @visibleForTesting
1463 */
1464export function getPropertiesForTesting() {
1465 return {
1466 allAdsCompleted,
1467 adRequestFailed,
1468 adsActive,
1469 adsManagerWidthOnLoad,
1470 adsManagerHeightOnLoad,
1471 adsRequest,
1472 contentComplete,
1473 controlsVisible,
1474 hideControlsTimeout,
1475 imaLoadAllowed,
1476 interactEvent,
1477 playbackStarted,
1478 playerState,
1479 PlayerStates,
1480 uiTicker,
1481 hideControlsQueued,
1482 icons,
1483 // TODO(alanorozco): Update names on test's end to pass `elements` instead.
1484 elements,
1485 videoPlayer: elements['video'],
1486 adContainerDiv: elements['adContainer'],
1487 controlsDiv: elements['controls'],
1488 playPauseDiv: elements['playButton'],
1489 countdownDiv: elements['countdown'],
1490 timeDiv: elements['time'],
1491 muteUnmuteDiv: elements['muteButton'],
1492 fullscreenDiv: elements['fullscreenButton'],
1493 bigPlayDiv: elements['overlayButton'],
1494 };
1495}
1496
1497/**
1498 * Gets the throttled show controls

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected