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

Function runVsync

test/unit/utils/test-animation.js:29–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 });
28
29 function runVsync() {
30 const tasks = vsyncTasks.slice(0);
31 vsyncTasks = [];
32 tasks.forEach(function (task) {
33 const state = {};
34 if (task.measure) {
35 task.measure(state);
36 }
37 task.mutate(state);
38 });
39 }
40
41 it('animation', () => {
42 let tr1 = -1;

Callers 1

test-animation.jsFile · 0.70

Calls 3

forEachMethod · 0.45
measureMethod · 0.45
mutateMethod · 0.45

Tested by

no test coverage detected