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

Unified Diff: compiler/javatests/com/google/dart/compiler/CompilerTestCase.java

Issue 10546161: Issue 3516. Make displaying warning for inferred types configurable (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
index 86423254bafc926ca671582dd4c88c1c67fd4825..a067e7e62062662343dda5bceec7159ba903b220 100644
--- a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
@@ -37,6 +37,7 @@ import java.util.Map;
public abstract class CompilerTestCase extends TestCase {
private static final String UTF8 = "UTF-8";
+ protected CompilerConfiguration compilerConfiguration;
/**
* Instance of {@link CompilerConfiguration} for incremental check-only compilation.
@@ -163,6 +164,12 @@ public abstract class CompilerTestCase extends TestCase {
}
return buf.toString();
}
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ compilerConfiguration = CHECK_ONLY_CONFIGURATION;
+ }
/**
* Simulate running {@code analyzeLibrary} the way the IDE will.
@@ -196,7 +203,7 @@ public abstract class CompilerTestCase extends TestCase {
result.setLibraryUnitResult(DartCompiler.analyzeLibrary(
lib,
testUnits,
- CHECK_ONLY_CONFIGURATION,
+ compilerConfiguration,
provider,
result));
// TODO(zundel): One day, we want all AST nodes that are identifiers to point to

Powered by Google App Engine
This is Rietveld 408576698