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

Unified Diff: tests/compiler/dart2js/type_test_helper.dart

Issue 1322973007: Use memory compiler in compiler_helper.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update cf. comments. 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: tests/compiler/dart2js/type_test_helper.dart
diff --git a/tests/compiler/dart2js/type_test_helper.dart b/tests/compiler/dart2js/type_test_helper.dart
index 4f6dcd183aaaab889a5d7b169ed7f2854f16679f..c67d0bafb7d924d55fbbee73c39dece394501467 100644
--- a/tests/compiler/dart2js/type_test_helper.dart
+++ b/tests/compiler/dart2js/type_test_helper.dart
@@ -8,6 +8,7 @@ import 'dart:async';
import 'package:expect/expect.dart';
import 'compiler_helper.dart' as mock;
import 'memory_compiler.dart' as memory;
+import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/dart_types.dart';
import 'package:compiler/src/compiler.dart'
show Compiler;
@@ -65,7 +66,7 @@ class TypeEnvironment {
memorySourceFiles: {'main.dart': source},
diagnosticHandler: collector,
options: stopAfterTypeInference
- ? [] : ['--analyze-all', '--analyze-only']);
+ ? [] : [Flags.analyzeAll, Flags.analyzeOnly]);
getErrors = () => collector.errors;
getWarnings = () => collector.warnings;
}
« no previous file with comments | « tests/compiler/dart2js/trust_type_annotations2_test.dart ('k') | tests/compiler/dart2js/use_checks_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698