screenshot-compare.d.ts 763 B

1234567891011121314151617181920
  1. import type * as d from '@stencil/core/internal';
  2. export declare function compareScreenshot(emulateConfig: d.EmulateConfig, screenshotBuildData: d.ScreenshotBuildData, currentScreenshotBuf: Buffer, screenshotTimeoutMs: number | null, desc: string, width: number, height: number, testPath: string, pixelmatchThreshold: number): Promise<{
  3. id: string;
  4. desc: string;
  5. imageA: string;
  6. imageB: string;
  7. mismatchedPixels: number;
  8. device: string;
  9. userAgent: string;
  10. width: number;
  11. height: number;
  12. deviceScaleFactor: number;
  13. hasTouch: boolean;
  14. isLandscape: boolean;
  15. isMobile: boolean;
  16. allowableMismatchedPixels: number;
  17. allowableMismatchedRatio: number;
  18. testPath: string;
  19. cacheKey: string | undefined;
  20. }>;