mirror of
https://github.com/flutter/flutter
synced 2024-09-19 08:11:56 +00:00
Update an analyzer test to support changes to error message text in the latest Dart SDK (#99281)
See https://github.com/flutter/flutter/issues/99248
This commit is contained in:
parent
e27f714497
commit
504e669200
|
@ -22,9 +22,9 @@ void main() {
|
|||
final List<String> stdoutLines = process.stdout.toString().split('\n');
|
||||
final List<String> stderrLines = process.stderr.toString().split('\n');
|
||||
expect(process.exitCode, isNot(equals(0)));
|
||||
expect(stderrLines, containsAll(<String>[
|
||||
expect(stderrLines, containsAll(<Object>[
|
||||
'In sample starting at dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:125: child: Text(title),',
|
||||
">>> error: The final variable 'title' can't be read because it is potentially unassigned at this point (read_potentially_unassigned_final)",
|
||||
matches(RegExp(r">>> error: The final variable 'title' can't be read because (it is|it's) potentially unassigned at this point \(read_potentially_unassigned_final\)")),
|
||||
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:30:9: new Opacity(',
|
||||
'>>> info: Unnecessary new keyword (unnecessary_new)',
|
||||
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:62:9: new Opacity(',
|
||||
|
|
Loading…
Reference in a new issue