| Index: pkg/analyzer/test/src/context/context_test.dart
|
| diff --git a/pkg/analyzer/test/src/context/context_test.dart b/pkg/analyzer/test/src/context/context_test.dart
|
| index d37179a9449a67d5176e8bc41a4b3b93b6cc95b5..326e6a2bc2c4997a095cded8bd581e58f00cf454 100644
|
| --- a/pkg/analyzer/test/src/context/context_test.dart
|
| +++ b/pkg/analyzer/test/src/context/context_test.dart
|
| @@ -490,6 +490,13 @@ library lib;
|
| expect(context.computeDocumentationComment(null), isNull);
|
| }
|
|
|
| + void test_computeErrors_dart_malformedCode() {
|
| + Source source = addSource("/lib.dart", "final int , = 42;");
|
| + List<AnalysisError> errors = context.computeErrors(source);
|
| + expect(errors, isNotNull);
|
| + expect(errors.length > 0, isTrue);
|
| + }
|
| +
|
| void test_computeErrors_dart_none() {
|
| Source source = addSource("/lib.dart", "library lib;");
|
| List<AnalysisError> errors = context.computeErrors(source);
|
|
|