Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ampproject/amphtml
/ stubVsyncMeasure
Function
stubVsyncMeasure
test/unit/test-viewport.js:163–167 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
161
}
162
163
function
stubVsyncMeasure() {
164
env.sandbox
165
.stub(viewport.vsync_,
'measurePromise'
)
166
.callsFake((cb) => Promise.resolve(cb()));
167
}
168
169
describe(
'top-level classes'
, () => {
170
let
root;
Callers
1
test-viewport.js
File · 0.85
Calls
2
resolve
Method · 0.80
cb
Function · 0.50
Tested by
no test coverage detected