Chromium Code Reviews| 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) { |