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

Function waitForNextPass

test/integration/test-visibility-states.js:76–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 }
75
76 function waitForNextPass() {
77 return new Promise((resolve) => {
78 notifyPass = resolve;
79 shouldPass = true;
80 resources.schedulePass();
81 }).then(() => {
82 if (R1_IMG_DEFERRED_BUILD) {
83 return new Promise((resolve) => setTimeout(resolve, 20));
84 }
85 });
86 }
87
88 function setupSpys() {
89 layoutCallback.reset();

Callers 1

Calls 2

thenMethod · 0.45
schedulePassMethod · 0.45

Tested by

no test coverage detected