mirror of
https://github.com/flutter/flutter
synced 2024-08-24 18:36:03 +00:00
Add the number of mismatched pixels to golden tests output (#142975)
Fixes https://github.com/flutter/flutter/issues/141036
This commit is contained in:
parent
0202e3bf7a
commit
ab836a2db0
|
@ -262,7 +262,7 @@ Future<ComparisonResult> compareLists(List<int>? test, List<int>? master) async
|
|||
passed: false,
|
||||
diffPercent: diffPercent,
|
||||
error: 'Pixel test failed, '
|
||||
'${(diffPercent * 100).toStringAsFixed(2)}% '
|
||||
'${(diffPercent * 100).toStringAsFixed(2)}%, ${pixelDiffCount}px '
|
||||
'diff detected.',
|
||||
diffs: <String, Image>{
|
||||
'masterImage' : masterImage,
|
||||
|
|
|
@ -192,7 +192,7 @@ void main() {
|
|||
throwsA(isFlutterError.having(
|
||||
(FlutterError error) => error.message,
|
||||
'message',
|
||||
contains('% diff detected'),
|
||||
contains('100.00%, 1px diff detected'),
|
||||
)),
|
||||
);
|
||||
final io.File master = fs.file(
|
||||
|
@ -223,7 +223,7 @@ void main() {
|
|||
throwsA(isFlutterError.having(
|
||||
(FlutterError error) => error.message,
|
||||
'message',
|
||||
contains('% diff detected'),
|
||||
contains('100.00%, 1px diff detected'),
|
||||
)),
|
||||
);
|
||||
final io.File master = fs.file(
|
||||
|
@ -302,7 +302,7 @@ void main() {
|
|||
throwsA(isFlutterError.having(
|
||||
(FlutterError error) => error.message,
|
||||
'message',
|
||||
contains('% diff detected'),
|
||||
contains('100.00%, 1px diff detected'),
|
||||
)),
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue