Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ec6ee2f

Browse files
authored
[web] Print screenshot paths at the right spot (#40714)
[web] Print screenshot paths at the right spot
1 parent af0a37e commit ec6ee2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_sdk/web_test_utils/lib/image_compare.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ Future<String> compareImage(
7070
// At the moment, we don't support local screenshot testing because we use
7171
// Skia Gold to handle our screenshots and diffing. In the future, we might
7272
// implement local screenshot testing if there's a need.
73+
if (verbose) {
74+
print('Screenshot generated: file://$screenshotPath'); // ignore: avoid_print
75+
}
7376
return 'OK';
7477
}
7578

7679
// TODO(mdebbar): Use the Gold tool to locally diff the golden.
77-
if (verbose) {
78-
print('Screenshot generated: file://$screenshotPath'); // ignore: avoid_print
79-
}
8080
return 'OK';
8181
}
8282

0 commit comments

Comments
 (0)