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

Unified Diff: test/end_to_end_test.dart

Issue 1322333003: DDC: mostly incremental compilation, fixes #223 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase Created 5 years, 3 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: test/end_to_end_test.dart
diff --git a/test/end_to_end_test.dart b/test/end_to_end_test.dart
index 7515240816db7afd083bfb60b5cacbdaddf7d3f2..5dcfb1902d68a55de47f1178d3e351dc8c8bf84b 100644
--- a/test/end_to_end_test.dart
+++ b/test/end_to_end_test.dart
@@ -14,8 +14,13 @@ import 'testing.dart' show realSdkContext, testDirectory;
main() {
var mockSdkContext = createAnalysisContextWithSources(
new StrongModeOptions(), new SourceResolverOptions(useMockSdk: true));
- var compiler = new BatchCompiler(mockSdkContext, new CompilerOptions());
- _check(file) => compiler.compileFromUriString('$testDirectory/$file.dart');
+ BatchCompiler compiler;
+ _check(file) {
+ if (compiler == null) {
+ compiler = new BatchCompiler(mockSdkContext, new CompilerOptions());
+ }
+ compiler.compileFromUriString('$testDirectory/$file.dart');
+ }
test('checker runs correctly (end-to-end)', () {
_check('samples/funwithtypes');
« lib/src/options.dart ('K') | « test/codegen_test.dart ('k') | tool/build_sdk.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698