Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: pkg/analyzer/test/generated/resolver_test.dart

Issue 2044383003: Issue 26639. Set source for mock 'dart:async' library. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/resolver_test.dart
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart
index 102956ae860a7fdacc0d565196d82cb2b2a17888..e3756ac9abb873dec40b31ce4c576e8b180eb447 100644
--- a/pkg/analyzer/test/generated/resolver_test.dart
+++ b/pkg/analyzer/test/generated/resolver_test.dart
@@ -2920,8 +2920,12 @@ class TypeProviderImplTest extends EngineTestCase {
context, AstFactory.libraryIdentifier2(["dart.core"]));
coreLibrary.definingCompilationUnit = coreUnit;
- LibraryElementImpl mockAsyncLib =
- (context as AnalysisContextImpl).createMockAsyncLib(coreLibrary);
+ Source asyncSource = new NonExistingSource(
+ 'async.dart', Uri.parse('dart:async'), UriKind.DART_URI);
+ LibraryElementImpl mockAsyncLib = (context as AnalysisContextImpl)
+ .createMockAsyncLib(coreLibrary, asyncSource);
+ expect(mockAsyncLib.source, same(asyncSource));
+ expect(mockAsyncLib.definingCompilationUnit.source, same(asyncSource));
expect(mockAsyncLib.publicNamespace, isNotNull);
//
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698