| 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 f8089e96bc7e48595d2c466dd248f11b05f32e1a..7ed1c5a1d3ecbf742fac4db0671e9a0d68bfc146 100644
|
| --- a/pkg/analyzer/test/generated/resolver_test.dart
|
| +++ b/pkg/analyzer/test/generated/resolver_test.dart
|
| @@ -25,6 +25,7 @@ import 'package:analyzer/src/generated/testing/ast_factory.dart';
|
| import 'package:analyzer/src/generated/testing/element_factory.dart';
|
| import 'package:analyzer/src/generated/java_io.dart';
|
| import '../reflective_tests.dart';
|
| +import 'parser_test.dart';
|
|
|
|
|
| /**
|
| @@ -977,7 +978,7 @@ class C {
|
| const int ZERO = 0;
|
| class C {
|
| int m(int p) {
|
| - return (p * p) + (p * p) + ZERO;
|
| + return p + p;
|
| }
|
| }''');
|
| }
|
| @@ -1063,9 +1064,7 @@ class C {
|
| Source source = addSource(oldContent);
|
| LibraryElement library = resolve(source);
|
| CompilationUnit oldUnit = resolveCompilationUnit(source, library);
|
| - AnalysisContext context = analysisContext;
|
| - context.setContents(source, newContent);
|
| - CompilationUnit newUnit = context.parseCompilationUnit(source);
|
| + CompilationUnit newUnit = ParserTestCase.parseCompilationUnit(newContent, []);
|
| DeclarationMatcher matcher = new DeclarationMatcher();
|
| expect(matcher.matches(newUnit, oldUnit.element), expectMatch);
|
| }
|
|
|