Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.js
File · 0.85
Calls
1
count
Method · 0.80
Tested by
no test coverage detected