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

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

Issue 1125123006: Add a "librarySource" field to CompilationUnitElementImpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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/task_dart.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/element_test.dart
diff --git a/pkg/analyzer/test/generated/element_test.dart b/pkg/analyzer/test/generated/element_test.dart
index 4e8041de7a358abac556d23de1d1d8c78e5c51ab..0de22892c8d44172e8bb3b5ba17ca99d5b527401 100644
--- a/pkg/analyzer/test/generated/element_test.dart
+++ b/pkg/analyzer/test/generated/element_test.dart
@@ -3563,9 +3563,9 @@ class LibraryElementImplTest extends EngineTestCase {
LibraryElementImpl library = ElementFactory.library(context, "test");
CompilationUnitElement unitLib = library.definingCompilationUnit;
CompilationUnitElementImpl unitA =
- ElementFactory.compilationUnit("unit_a.dart");
+ ElementFactory.compilationUnit("unit_a.dart", unitLib.source);
CompilationUnitElementImpl unitB =
- ElementFactory.compilationUnit("unit_b.dart");
+ ElementFactory.compilationUnit("unit_b.dart", unitLib.source);
library.parts = <CompilationUnitElement>[unitA, unitB];
expect(library.units,
unorderedEquals(<CompilationUnitElement>[unitLib, unitA, unitB]));
« no previous file with comments | « pkg/analyzer/lib/src/task/task_dart.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698