Unverified Commit a511c436 authored by Anna Gringauze's avatar Anna Gringauze Committed by GitHub

Fix web_tool_tests failure on dart roll (#88914)

Helps: https://github.com/flutter/flutter/issues/88911
parent 3e3fdd22
...@@ -189,7 +189,7 @@ Future<void> checkStaticScope(FlutterTestDriver flutter) async { ...@@ -189,7 +189,7 @@ Future<void> checkStaticScope(FlutterTestDriver flutter) async {
Future<void> evaluateErrorExpressions(FlutterTestDriver flutter) async { Future<void> evaluateErrorExpressions(FlutterTestDriver flutter) async {
final ObjRef res = await flutter.evaluateInFrame('typo'); final ObjRef res = await flutter.evaluateInFrame('typo');
expectError(res, "CompilationError: Getter not found: 'typo'.\ntypo\n^^^^"); expectError(res, 'CompilationError:');
} }
Future<void> evaluateTrivialExpressions(FlutterTestDriver flutter) async { Future<void> evaluateTrivialExpressions(FlutterTestDriver flutter) async {
...@@ -242,5 +242,5 @@ void expectInstance(ObjRef result, String kind, String message) { ...@@ -242,5 +242,5 @@ void expectInstance(ObjRef result, String kind, String message) {
void expectError(ObjRef result, String message) { void expectError(ObjRef result, String message) {
expect(result, expect(result,
const TypeMatcher<ErrorRef>() const TypeMatcher<ErrorRef>()
.having((ErrorRef instance) => instance.message, 'message', message)); .having((ErrorRef instance) => instance.message, 'message', contains(message)));
} }
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