Commit f8d361eb authored by Dan Field's avatar Dan Field Committed by Flutter GitHub Bot

contains (#49247)

parent 525855d5
...@@ -379,7 +379,7 @@ void main() { ...@@ -379,7 +379,7 @@ void main() {
expect(builder.properties.length, 4); expect(builder.properties.length, 4);
expect(builder.properties[0].toString(), 'The following assertion was thrown:'); expect(builder.properties[0].toString(), 'The following assertion was thrown:');
expect(builder.properties[1].toString(), 'Assertion failed'); expect(builder.properties[1].toString(), contains('Assertion failed'));
expect(builder.properties[2] is ErrorSpacer, true); expect(builder.properties[2] is ErrorSpacer, true);
final DiagnosticsStackTrace trace = builder.properties[3] as DiagnosticsStackTrace; final DiagnosticsStackTrace trace = builder.properties[3] as DiagnosticsStackTrace;
expect(trace, isNotNull); expect(trace, isNotNull);
...@@ -413,7 +413,7 @@ void main() { ...@@ -413,7 +413,7 @@ void main() {
details.debugFillProperties(builder); details.debugFillProperties(builder);
expect(builder.properties.length, 6); expect(builder.properties.length, 6);
expect(builder.properties[0].toString(), 'The following assertion was thrown:'); expect(builder.properties[0].toString(), 'The following assertion was thrown:');
expect(builder.properties[1].toString(), 'Assertion failed'); expect(builder.properties[1].toString(), contains('Assertion failed'));
expect(builder.properties[2] is ErrorSpacer, true); expect(builder.properties[2] is ErrorSpacer, true);
expect( expect(
builder.properties[3].toString(), builder.properties[3].toString(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment