Skip to content

Commit 13a5759

Browse files
Add missing px
1 parent a4f8711 commit 13a5759

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/src/scenes/golden_scene_report_printer.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,19 @@ class GoldenSceneReportPrinter {
4949
buffer.write(' - ');
5050
// Print the width comparison.
5151
if (mismatch.golden.size.width > mismatch.screenshot.size.width) {
52-
buffer.write("Candidate is ${mismatch.golden.size.width - mismatch.screenshot.size.width} too narrow.");
52+
buffer.write("Candidate is ${mismatch.golden.size.width - mismatch.screenshot.size.width}px too narrow.");
5353
} else if (mismatch.golden.size.width < mismatch.screenshot.size.width) {
54-
buffer.write("Candidate is ${mismatch.screenshot.size.width - mismatch.golden.size.width} too wide.");
54+
buffer.write("Candidate is ${mismatch.screenshot.size.width - mismatch.golden.size.width}px too wide.");
5555
} else {
5656
buffer.write("Candidate has correct width.");
5757
}
5858
// Print the height comparison.
5959
if (mismatch.golden.size.height > mismatch.screenshot.size.height) {
60-
buffer.write(" Candidate is ${mismatch.golden.size.height - mismatch.screenshot.size.height} too short.");
60+
buffer
61+
.write(" Candidate is ${mismatch.golden.size.height - mismatch.screenshot.size.height}px too short.");
6162
} else if (mismatch.golden.size.height < mismatch.screenshot.size.height) {
62-
buffer.write(" Candidate is ${mismatch.screenshot.size.height - mismatch.golden.size.height} too tall.");
63+
buffer
64+
.write(" Candidate is ${mismatch.screenshot.size.height - mismatch.golden.size.height}px too tall.");
6365
} else {
6466
buffer.write(" Candidate has correct height.");
6567
}

0 commit comments

Comments
 (0)