clean up stale or unnecessary TODOS (#88308)

This commit is contained in:
Jonah Williams
2021-08-16 21:37:03 -07:00
committed by GitHub
parent d39d542691
commit 060e4608b1
15 changed files with 16 additions and 29 deletions

View File

@@ -143,7 +143,7 @@ mixin LocalComparisonOutput {
String additionalFeedback = '';
if (result.diffs != null) {
additionalFeedback = '\nFailure feedback can be found at ${path.join(basedir.path, 'failures')}';
final Map<String, Image> diffs = result.diffs!.cast<String, Image>();
final Map<String, Image> diffs = result.diffs!;
for (final MapEntry<String, Image> entry in diffs.entries) {
final File output = getFailureFile(
key.isEmpty ? entry.key : '${entry.key}_$key',

View File

@@ -3,6 +3,7 @@
// found in the LICENSE file.
import 'dart:typed_data';
import 'dart:ui';
import 'package:path/path.dart' as path;
import '_goldens_io.dart' if (dart.library.html) '_goldens_web.dart' as _goldens;
@@ -326,8 +327,7 @@ class ComparisonResult {
/// Map containing differential images to illustrate found variants in pixel
/// values in the execution of the pixel test.
// TODO(jonahwilliams): fix type signature when image is updated to support web.
final Map<String, Object>? diffs;
final Map<String, Image>? diffs;
/// The calculated percentage of pixel difference between two images.
final double diffPercent;