clean up stale or unnecessary TODOS (#88308)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user