MCPcopy Create free account
hub / github.com/ampproject/amphtml / runPromise

Function runPromise

test/unit/test-fixed-layer.js:1586–1590  ·  view source on GitHub ↗
({measure, mutate}, state)

Source from the content-addressed store, hash-verified

1584 element1.computedStyle['top'] = '0px';
1585 fixedLayer.vsync_ = {
1586 runPromise({measure, mutate}, state) {
1587 measure(state);
1588 mutate(state);
1589 return Promise.resolve();
1590 },
1591 };
1592
1593 body.setAttribute('test', 'hello');

Callers

nothing calls this directly

Calls 3

resolveMethod · 0.80
mutateFunction · 0.70
measureFunction · 0.50

Tested by

no test coverage detected