| Index: pkg/analyzer/test/src/task/dart_test.dart
|
| diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
|
| index f1e5e6d312123d848f95666bb47659d7e810e4be..e351c39f68421478b60cbed0bc30936a683307f8 100644
|
| --- a/pkg/analyzer/test/src/task/dart_test.dart
|
| +++ b/pkg/analyzer/test/src/task/dart_test.dart
|
| @@ -3052,7 +3052,7 @@ part 'test.dart';
|
| expect(outputs[LIBRARY_SPECIFIC_UNITS], hasLength(1));
|
| expect(outputs[PARSE_ERRORS], hasLength(0));
|
| expect(outputs[PARSED_UNIT], isNotNull);
|
| - expect(outputs[SOURCE_KIND], SourceKind.UNKNOWN);
|
| + expect(outputs[SOURCE_KIND], SourceKind.LIBRARY);
|
| expect(outputs[UNITS], hasLength(1));
|
| }
|
|
|
| @@ -3162,7 +3162,11 @@ class B {}''');
|
| }
|
|
|
| void _performParseTask(String content) {
|
| - source = newSource('/test.dart', content);
|
| + if (content == null) {
|
| + source = resourceProvider.getFile('/test.dart').createSource();
|
| + } else {
|
| + source = newSource('/test.dart', content);
|
| + }
|
| computeResult(source, PARSED_UNIT, matcher: isParseDartTask);
|
| }
|
|
|
|
|