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

Function getVisibilityEventCount

test/unit/test-vsync.js:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 });
38
39 function getVisibilityEventCount() {
40 return (
41 doc.eventListeners.count('visibilitychange') - iniVisibilityEventCount
42 );
43 }
44
45 it('should init correctly', () => {
46 expect(vsync.canAnimate(contextNode)).to.be.true;

Callers 1

test-vsync.jsFile · 0.85

Calls 1

countMethod · 0.80

Tested by

no test coverage detected