| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/ResolverTestCase.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/ResolverTestCase.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/ResolverTestCase.java
|
| index f1e6d3025b58b20fa1697129ebc657a849015dd0..7f7f5dde3f437de5aa37ed09eda6e5d50d7a7375 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/ResolverTestCase.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/ResolverTestCase.java
|
| @@ -73,9 +73,7 @@ public class ResolverTestCase extends EngineTestCase {
|
|
|
| @Override
|
| public void setUp() {
|
| - errorListener = new GatheringErrorListener();
|
| - analysisContext = AnalysisContextFactory.contextWithCore();
|
| - sourceFactory = analysisContext.getSourceFactory();
|
| + reset();
|
| }
|
|
|
| /**
|
| @@ -180,6 +178,16 @@ public class ResolverTestCase extends EngineTestCase {
|
| }
|
|
|
| /**
|
| + * In the rare cases we want to group several tests into single "test_" method, so need a way to
|
| + * reset test instance to reuse it.
|
| + */
|
| + protected void reset() {
|
| + errorListener = new GatheringErrorListener();
|
| + analysisContext = AnalysisContextFactory.contextWithCore();
|
| + sourceFactory = analysisContext.getSourceFactory();
|
| + }
|
| +
|
| + /**
|
| * Given a library and all of its parts, resolve the contents of the library and the contents of
|
| * the parts. This assumes that the sources for the library and its parts have already been added
|
| * to the content provider using the method {@link #addSource(String, String)}.
|
|
|