Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ FakeImage
Method
FakeImage
testing/helpers/service.js:371–375 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
369
constructor(windowInterface) {
370
this.imagePixels_ = [];
371
const
FakeImage = () => {
372
const
pixel = {};
373
this.imagePixels_.push(pixel);
374
return
pixel;
375
};
376
windowInterface.getImage.returns(FakeImage);
377
}
378
Callers
nothing calls this directly
Calls
1
push
Method · 0.45
Tested by
no test coverage detected