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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/ResolverTestCase.java

Issue 14592005: Report CompileTimeErrorCode.WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
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)}.

Powered by Google App Engine
This is Rietveld 408576698