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

Function toggleVisibility

test/unit/test-performance.js:882–887  ·  view source on GitHub ↗
(perf, on)

Source from the content-addressed store, hash-verified

880 }
881
882 async function toggleVisibility(perf, on) {
883 viewerVisibilityState = on
884 ? VisibilityState_Enum.VISIBLE
885 : VisibilityState_Enum.HIDDEN;
886 perf.onAmpDocVisibilityChange_();
887 }
888
889 describe('should forward paint metrics for performance entries', () => {
890 it('created before performance service registered', () => {

Callers 1

Calls 1

Tested by

no test coverage detected