MCPcopy
hub / github.com/ampproject/amphtml / runVsync

Function runVsync

test/unit/test-viewport.js:151–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 }
150
151 function runVsync() {
152 const tasks = vsyncTasks.slice(0);
153 vsyncTasks = [];
154 tasks.forEach(function (task) {
155 const state = {};
156 if (task.measure) {
157 task.measure(state);
158 }
159 task.mutate(state);
160 });
161 }
162
163 function stubVsyncMeasure() {
164 env.sandbox

Callers 1

test-viewport.jsFile · 0.70

Calls 3

forEachMethod · 0.45
measureMethod · 0.45
mutateMethod · 0.45

Tested by

no test coverage detected