Unverified Commit ab836a2d authored by Valentin Vignal's avatar Valentin Vignal Committed by GitHub

Add the number of mismatched pixels to golden tests output (#142975)

Fixes https://github.com/flutter/flutter/issues/141036
parent 0202e3bf
......@@ -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'),
)),
);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment