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

Function setElementResourceState

test/unit/test-owners.js:72–78  ·  view source on GitHub ↗
(element, state)

Source from the content-addressed store, hash-verified

70 }
71
72 function setElementResourceState(element, state) {
73 const resource = resources.getResourceForElementOptional(element);
74 if (resource) {
75 resource.state_ = state;
76 }
77 return resource;
78 }
79
80 describe('schedulePause', () => {
81 it('should not throw with a single element', () => {

Callers 2

setAllResourceStateFunction · 0.85
test-owners.jsFile · 0.85

Calls 1

Tested by

no test coverage detected