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

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

Issue 10878088: Issue 4719. Mark inferred List/Map literal types as inferred. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 bd143952515bafa91410d2a3bbcf4d2d4afd07ee..e5388c611393728f65e4573b042028a5d6fbe3f1 100644
--- a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
@@ -42,6 +42,7 @@ public abstract class CompilerTestCase extends TestCase {
private static final String UTF8 = "UTF-8";
protected CompilerConfiguration compilerConfiguration;
+ protected String testSource;
protected DartUnit testUnit;
/**
@@ -179,13 +180,15 @@ public abstract class CompilerTestCase extends TestCase {
@Override
protected void tearDown() throws Exception {
compilerConfiguration = null;
+ testSource = null;
testUnit = null;
super.tearDown();
}
protected AnalyzeLibraryResult analyzeLibrary(String... lines) throws Exception {
String name = getName();
- AnalyzeLibraryResult libraryResult = analyzeLibrary(name, makeCode(lines));
+ testSource = makeCode(lines);
+ AnalyzeLibraryResult libraryResult = analyzeLibrary(name, testSource);
testUnit = libraryResult.getLibraryUnitResult().getUnit(name);
return libraryResult;
}

Powered by Google App Engine
This is Rietveld 408576698