| 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 8875d92b09d0d63f933620b11bac97f93f33b873..554bc0a544c6e88655e2925e93789702ebd3783c 100644
|
| --- a/pkg/analyzer/test/src/context/context_test.dart
|
| +++ b/pkg/analyzer/test/src/context/context_test.dart
|
| @@ -1209,13 +1209,23 @@ Stream S = null;
|
| // must be from SDK context
|
| AnalysisContext sdkContext = context.sourceFactory.dartSdk.context;
|
| expect(sdkContext, streamElement.context);
|
| - // must be in the "async" library
|
| Source intSource = streamElement.source;
|
| - List<Source> coreLibraries = sdkContext.getLibrariesContaining(intSource);
|
| - expect(coreLibraries, hasLength(1));
|
| - Source coreSource = coreLibraries[0];
|
| - expect(coreSource.isInSystemLibrary, isTrue);
|
| - expect(coreSource.shortName, 'async.dart');
|
| + // must be in the "async" library - SDK context
|
| + {
|
| + List<Source> coreLibraries = sdkContext.getLibrariesContaining(intSource);
|
| + expect(coreLibraries, hasLength(1));
|
| + Source coreSource = coreLibraries[0];
|
| + expect(coreSource.isInSystemLibrary, isTrue);
|
| + expect(coreSource.shortName, 'async.dart');
|
| + }
|
| + // must be in the "async" library - main context
|
| + {
|
| + List<Source> coreLibraries = context.getLibrariesContaining(intSource);
|
| + expect(coreLibraries, hasLength(1));
|
| + Source coreSource = coreLibraries[0];
|
| + expect(coreSource.isInSystemLibrary, isTrue);
|
| + expect(coreSource.shortName, 'async.dart');
|
| + }
|
| }
|
|
|
| void test_getLineInfo() {
|
|
|