testplane
Version:
Tests framework based on mocha and wdio
21 lines (20 loc) • 606 B
TypeScript
import { ExistingBrowser } from "./existing-browser";
import { Length, Rect, Size } from "./isomorphic";
interface BrowserFeatures {
needsCompatLib: boolean;
pixelRatio: number;
innerWidth: Length<"css", "x">;
}
export interface CalibrationResult extends BrowserFeatures {
viewportArea: Rect<"image", "device">;
screenshotSize: Size<"device">;
usePixelRatio: boolean;
}
export declare class Calibrator {
private _cache;
private _script;
constructor();
calibrate(browser: ExistingBrowser): Promise<CalibrationResult>;
private _findMarkerAreaInImage;
}
export {};