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

Unified Diff: compiler/javatests/com/google/dart/compiler/backend/js/SnippetTestCase.java

Issue 9225024: Issue 962. Fix for crash in nested function parameters list code generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/backend/js/RttTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/backend/js/SnippetTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/backend/js/SnippetTestCase.java b/compiler/javatests/com/google/dart/compiler/backend/js/SnippetTestCase.java
index 6dca0115f3f2450d7fb23da990345b60d1a16843..157fad9a96e70feda4abd291fb4cd7739cdd6762 100644
--- a/compiler/javatests/com/google/dart/compiler/backend/js/SnippetTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/backend/js/SnippetTestCase.java
@@ -40,15 +40,19 @@ public abstract class SnippetTestCase extends CompilerTestCase {
super.tearDown();
}
- protected String compileSingleUnit(final String filePath) throws IOException {
+ protected String compileSingleUnit(String filePath) throws IOException {
return compileSingleUnit(filePath, "Main");
}
- protected String compileSingleUnit(final String filePath, final String part) throws IOException {
+ protected String compileSingleUnit(String filePath, String part) throws IOException {
URL url = inputUrlFor(getClass(), filePath + ".dart");
String source = readUrl(url);
+ return compileSingleUnitSource(source, part);
+ }
+
+ protected String compileSingleUnitSource(String source, String part) throws IOException {
MockLibrarySource lib = new MockLibrarySource();
- DartSourceTest src = new DartSourceTest(filePath, source, lib);
+ DartSourceTest src = new DartSourceTest("test", source, lib);
lib.addSource(src);
CompilerOptions options = new CompilerOptions();
CompilerConfiguration config = new DefaultCompilerConfiguration(this.getBackend(), options);
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/backend/js/RttTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698