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

Method constructor

testing/helpers/service.js:369–377  ·  view source on GitHub ↗
(windowInterface)

Source from the content-addressed store, hash-verified

367
368export class ImagePixelVerifier {
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
379 hasRequestSent() {
380 return this.imagePixels_.length > 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected