UNPKG

testplane

Version:

Tests framework based on mocha and wdio

38 lines (37 loc) 1.44 kB
import { Image } from "../../../image"; import type { Rect, Size, YBand } from "../../isomorphic/geometry"; import type { CaptureSpec } from "../../client-scripts/screen-shooter/types"; type DebugRectColor = { r: number; g: number; b: number; a: number; }; export type ViewportDebugRect = { rect: Rect<"viewport", "device">; color: DebugRectColor; }; export declare const COMPOSITE_IMAGE_DEBUG_COLORS: { readonly safeArea: { readonly r: 0; readonly g: 255; readonly b: 0; readonly a: 255; }; readonly captureSpecVisible: { readonly r: 255; readonly g: 0; readonly b: 0; readonly a: 255; }; readonly visibleCoveringRect: { readonly r: 255; readonly g: 105; readonly b: 180; readonly a: 255; }; }; export declare function saveViewportImageWithDebugRects(image: Image, rects: ViewportDebugRect[], outputPath: string): Promise<void>; export declare function saveRenderedPiecesForDebugIfNeeded(renderedPieces: Image[], destinationDirPath: string | null): Promise<void>; export declare function saveViewportImageForDebugIfNeeded(chunkIndex: number, viewportImage: Image, imageSize: Size<"device">, safeArea: YBand<"viewport", "device">, captureSpecs: CaptureSpec<"viewport", "device">[], visibleCoveringRect: Rect<"viewport", "device">, destinationDirPath: string | null): Promise<void>; export {};