Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 8780859

Browse files
authored
remove write parameter from _checkScreenshot (#20340)
1 parent e12929f commit 8780859

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web_ui/test/golden_tests/engine/canvas_draw_image_golden_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void main() async {
2323
// Commit a recording canvas to a bitmap, and compare with the expected
2424
Future<void> _checkScreenshot(RecordingCanvas rc, String fileName,
2525
{Rect region = const Rect.fromLTWH(0, 0, 500, 500),
26-
double maxDiffRatePercent = 0.0, bool write = false}) async {
26+
double maxDiffRatePercent = 0.0}) async {
2727
final EngineCanvas engineCanvas = BitmapCanvas(screenRect);
2828

2929
rc.endRecording();
@@ -35,7 +35,7 @@ void main() async {
3535
sceneElement.append(engineCanvas.rootElement);
3636
html.document.body.append(sceneElement);
3737
await matchGoldenFile('$fileName.png',
38-
region: region, maxDiffRatePercent: maxDiffRatePercent, write: write);
38+
region: region, maxDiffRatePercent: maxDiffRatePercent);
3939
} finally {
4040
// The page is reused across tests, so remove the element after taking the
4141
// Scuba screenshot.

0 commit comments

Comments
 (0)