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

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

Issue 8287001: Add a command-line option for generating source maps. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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
===================================================================
--- compiler/javatests/com/google/dart/compiler/CompilerTestCase.java (revision 409)
+++ compiler/javatests/com/google/dart/compiler/CompilerTestCase.java (working copy)
@@ -183,13 +183,20 @@
MockLibrarySource lib = new MockLibrarySource();
DartSourceTest src = new DartSourceTest(name, code, lib);
lib.addSource(src);
- CompilerConfiguration config = new DefaultCompilerConfiguration(backend);
+ CompilerConfiguration config = getCompilerConfiguration(backend);
DartCompilerListener listener = new DartCompilerListenerTest(src.getName());
DartCompiler.compileLib(lib, config, provider, listener);
return src;
}
/**
+ * Allow tests to overrider the configuration used.
zundel 2011/10/17 17:28:46 overrider --> override
John Lenz 2011/10/17 18:38:35 Done.
+ */
+ protected CompilerConfiguration getCompilerConfiguration(Backend backend) {
+ return new DefaultCompilerConfiguration(backend);
+ }
+
+ /**
* Parse a single compilation unit for the given input file.
*/
protected final DartUnit parseUnit(final String path) {

Powered by Google App Engine
This is Rietveld 408576698