UNPKG

computed-styles-regression-test

Version:

DOM & CSSOM based regression testing utility

22 lines 828 B
import type { CSSOMElementNode } from './node.js'; import type { CSSOMSnapshot } from './snapshot.js'; export interface ComparisonResult { isEqual: boolean; differences: ComparisonDifference[]; } export interface ComparisonDifference { type: 'structure' | 'style'; path: string; expected: unknown; actual: unknown; description: string; } export interface ComparisonOptions { ignoreClassNames?: boolean; ignoreInlineStyles?: boolean; strictStructureComparison?: boolean; styleProperties?: string[]; } export declare function compareSnapshots(expected: CSSOMSnapshot, actual: CSSOMSnapshot, options?: ComparisonOptions): ComparisonResult; export declare function findElementByPath(snapshot: CSSOMSnapshot, path: string): CSSOMElementNode | null; //# sourceMappingURL=comparison.d.ts.map