MCPcopy
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.jsFile · 0.85

Calls 2

resolveMethod · 0.80
cbFunction · 0.50

Tested by

no test coverage detected