Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { scaleImageToSize } from '../../../server/utils/imageUtils';
import { scaleImageToSize } from '../../../utils/isomorphic/imageUtils';
import { jpegjs, PNG } from '../../../utilsBundle';
import { formatObject } from '../../../utils/isomorphic/stringUtils';

Expand Down
4 changes: 2 additions & 2 deletions packages/playwright-core/src/server/utils/comparators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import pixelmatch from '../../third_party/pixelmatch';
import { jpegjs } from '../../utilsBundle';
import { colors, diff } from '../../utilsBundle';
import { PNG } from '../../utilsBundle';
import { padImageToSize } from './imageUtils';
import { padImageToSize } from '../../utils/isomorphic/imageUtils';

import type { ImageData } from './imageUtils';
import type { ImageData } from '../../utils/isomorphic/imageUtils';

export type ImageComparatorOptions = { threshold?: number, maxDiffPixels?: number, maxDiffPixelRatio?: number, comparator?: string };
export type ComparatorResult = { diff?: Buffer; errorMessage: string; } | null;
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright-core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export * from './utils/isomorphic/ariaSnapshot';
export * from './utils/isomorphic/assert';
export * from './utils/isomorphic/colors';
export * from './utils/isomorphic/headers';
export * from './utils/isomorphic/imageUtils';
export * from './utils/isomorphic/locatorGenerators';
export * from './utils/isomorphic/manualPromise';
export * from './utils/isomorphic/mimeType';
Expand All @@ -44,7 +45,6 @@ export * from './server/utils/expectUtils';
export * from './server/utils/fileUtils';
export * from './server/utils/hostPlatform';
export * from './server/utils/httpServer';
export * from './server/utils/imageUtils';
export * from './server/utils/network';
export * from './server/utils/nodePlatform';
export * from './server/utils/processLauncher';
Expand Down
Loading