Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScreenCheckResult

Encapsulates a screen capture comparison. This is the type returned by the CLI method screencheck.

Hierarchy

  • ScreenCheckResult

Index

Constructors

constructor

Properties

data

data: Buffer

PNG data

pixelCount

pixelCount: Number

The count of pixels that missmatch between data and reference data.

Optional referenceData

referenceData: Buffer

PNG reference data

result

The comparison result

Methods

getDiff

  • getDiff(): Promise<Buffer | void>
  • A PNG data buffer containing pixel data corresponding to the difference between data and reference data.

    Use this method to get a render ready diff image.

    Returns Promise<Buffer | void>

isDifferent

  • isDifferent(): boolean

isSame

  • isSame(): boolean

okay

  • okay(): void

toString

  • toString(): string
  • The string representation of the result; e.g. "SAME", "DIFFERENT", "NO_BASE_IMAGE"

    Returns string

Generated using TypeDoc