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

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1138853002: Rename CONSTANT_RESOLVED_UNIT to RESOLVED_UNIT. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rework based on suggestions 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/test/src/context/context_test.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/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 a2628ce567da7bc3d8a8ed928334c943959efce0..ecd1a9e230f5aa64518b262bebdd1723ad3f181b 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -1560,9 +1560,9 @@ f() {}
const x = const C();
''');
LibrarySpecificUnit target = new LibrarySpecificUnit(source, source);
- _computeResult(target, CONSTANT_RESOLVED_UNIT);
+ _computeResult(target, RESOLVED_UNIT);
expect(task, new isInstanceOf<EvaluateUnitConstantsTask>());
- CompilationUnit unit = outputs[CONSTANT_RESOLVED_UNIT];
+ CompilationUnit unit = outputs[RESOLVED_UNIT];
CompilationUnitElement unitElement = unit.element;
expect((unitElement.types[0].constructors[
0] as ConstructorElementImpl).isCycleFree, isTrue);
@@ -2121,15 +2121,15 @@ main(A a) {
''');
LibrarySpecificUnit target = new LibrarySpecificUnit(source, source);
// prepare unit and "a.m()" invocation
- _computeResult(target, RESOLVED_UNIT);
- CompilationUnit unit = outputs[RESOLVED_UNIT];
+ _computeResult(target, RESOLVED_UNIT6);
+ CompilationUnit unit = outputs[RESOLVED_UNIT6];
// walk the AST
FunctionDeclaration function = unit.declarations[1];
BlockFunctionBody body = function.functionExpression.body;
ExpressionStatement statement = body.block.statements[0];
MethodInvocation invocation = statement.expression;
expect(task, new isInstanceOf<ResolveReferencesTask>());
- expect(unit, same(outputs[RESOLVED_UNIT]));
+ expect(unit, same(outputs[RESOLVED_UNIT6]));
// a.m() is resolved now
expect(invocation.methodName.staticElement, isNotNull);
}
@@ -2143,7 +2143,7 @@ main(A a) {
}
''');
LibrarySpecificUnit target = new LibrarySpecificUnit(source, source);
- _computeResult(target, RESOLVED_UNIT);
+ _computeResult(target, RESOLVED_UNIT6);
expect(task, new isInstanceOf<ResolveReferencesTask>());
// validate
_fillErrorListener(RESOLVE_REFERENCES_ERRORS);
« no previous file with comments | « pkg/analyzer/test/src/context/context_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698