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

Commit aec9c88

Browse files
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.
1 parent a7e0517 commit aec9c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web_ui/test/canvaskit/embedded_views_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void testMain() {
417417
} on AssertionError catch (error) {
418418
expect(
419419
error.toString(),
420-
'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."',
420+
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.'),
421421
);
422422
}
423423

0 commit comments

Comments
 (0)