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

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

Issue 1314833003: Shared commandline flags. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated 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
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | tests/compiler/dart2js/analyze_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/analyze_dart2js_helpers_test.dart
diff --git a/tests/compiler/dart2js/analyze_dart2js_helpers_test.dart b/tests/compiler/dart2js/analyze_dart2js_helpers_test.dart
index ac726143b684edde5e2ea9138de1d927ec19433c..98555eac7afbe501c89b048446d95f547c45ba8d 100644
--- a/tests/compiler/dart2js/analyze_dart2js_helpers_test.dart
+++ b/tests/compiler/dart2js/analyze_dart2js_helpers_test.dart
@@ -11,6 +11,7 @@ import 'package:compiler/compiler_new.dart' show
Diagnostic;
import 'package:compiler/src/apiimpl.dart' show
Compiler;
+import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/constants/expressions.dart' show
ConstructedConstantExpression;
import 'package:compiler/src/dart_types.dart' show
@@ -36,11 +37,11 @@ main(List<String> arguments) {
bool verbose = arguments.contains('-v');
List<String> options = <String>[
- '--analyze-only',
- '--analyze-main',
+ Flags.analyzeOnly,
+ Flags.analyzeMain,
'--categories=Client,Server'];
if (verbose) {
- options.add('--verbose');
+ options.add(Flags.verbose);
}
asyncTest(() async {
Compiler compiler = compilerFor(
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | tests/compiler/dart2js/analyze_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698