[testing/scenario_app] fix no-op interpolated toStrings() (flutter/engine#35165)

This commit is contained in:
Phil Quitslund
2022-08-04 11:37:07 -07:00
committed by GitHub
parent bacc6eb5cc
commit e1a6ff373d

View File

@@ -71,7 +71,7 @@ void main(List<String> args) async {
try {
goldenFile = File(join(screenshotPath, fileName))..writeAsBytesSync(fileContent, flush: true);
} on FileSystemException catch (err) {
panic(<String>['failed to create screenshot $fileName: ${err.toString()}']);
panic(<String>['failed to create screenshot $fileName: $err']);
}
log('wrote ${goldenFile.absolute.path}');
if (isSkiaGoldClientAvailable) {
@@ -79,13 +79,13 @@ void main(List<String> args) async {
.addImg(fileName, goldenFile,
screenshotSize: screenshot.pixelCount)
.catchError((dynamic err) {
panic(<String>['skia gold comparison failed: ${err.toString()}']);
panic(<String>['skia gold comparison failed: $err']);
});
pendingComparisons.add(comparison);
}
},
onError: (dynamic err) {
panic(<String>['error while receiving bytes: ${err.toString()}']);
panic(<String>['error while receiving bytes: $err']);
},
cancelOnError: true);
});