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

Function stubViewportScrollTop

test/unit/test-friendly-iframe-embed.js:87–91  ·  view source on GitHub ↗
(scrollTop)

Source from the content-addressed store, hash-verified

85 });
86
87 function stubViewportScrollTop(scrollTop) {
88 env.sandbox.stub(Services, 'viewportForDoc').returns({
89 getScrollTop: () => scrollTop,
90 });
91 }
92
93 it('should follow main install steps', () => {
94 // Resources are not involved.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected