From 617582e7444926d0c948ce760ad46f50602a1a59 Mon Sep 17 00:00:00 2001 From: Yegor Date: Wed, 5 Feb 2020 18:49:10 -0800 Subject: [PATCH] fix bad reference to maxDiffRatePercent (flutter/engine#16440) * fix bad reference to maxDiffRatePercent * back to 10% --- .../web_ui/test/golden_tests/engine/canvas_context_test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/lib/web_ui/test/golden_tests/engine/canvas_context_test.dart b/engine/src/flutter/lib/web_ui/test/golden_tests/engine/canvas_context_test.dart index 31ce13fc20..c8a407f3d0 100644 --- a/engine/src/flutter/lib/web_ui/test/golden_tests/engine/canvas_context_test.dart +++ b/engine/src/flutter/lib/web_ui/test/golden_tests/engine/canvas_context_test.dart @@ -29,7 +29,8 @@ void main() async { try { sceneElement.append(engineCanvas.rootElement); html.document.body.append(sceneElement); - await matchGoldenFile('$fileName.png', region: region, maxDiffRate: 0.1); + // TODO(yjbanov): 10% diff rate is excessive. Update goldens. + await matchGoldenFile('$fileName.png', region: region, maxDiffRatePercent: 10); } finally { // The page is reused across tests, so remove the element after taking the // Scuba screenshot.