From aec9c88705ae5c9f7be70fcf12bceb67b25abb05 Mon Sep 17 00:00:00 2001 From: Jackson Gardner Date: Wed, 3 Apr 2024 13:15:07 -0700 Subject: [PATCH] Be slightly more lenient about the assertion, as it differs on different backends. (#51877) We shouldn't assume the exact format of the assertion string here, as the exact output is slightly different on dart2js vs ddc vs dart2wasm. They should all contain the message text, however. --- lib/web_ui/test/canvaskit/embedded_views_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web_ui/test/canvaskit/embedded_views_test.dart b/lib/web_ui/test/canvaskit/embedded_views_test.dart index 1b0d76249d393..28d01be2ab41c 100644 --- a/lib/web_ui/test/canvaskit/embedded_views_test.dart +++ b/lib/web_ui/test/canvaskit/embedded_views_test.dart @@ -417,7 +417,7 @@ void testMain() { } on AssertionError catch (error) { expect( error.toString(), - 'Assertion failed: "Cannot render platform views: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. These views have not been created, or they have been deleted."', + contains('Cannot render platform views: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. These views have not been created, or they have been deleted.'), ); }