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_test_test.dart

Issue 1885523002: Add summary to analyze_* tests. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update cf. comments. Created 4 years, 8 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 | « tests/compiler/dart2js/analyze_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/analyze_test_test.dart
diff --git a/tests/compiler/dart2js/analyze_test_test.dart b/tests/compiler/dart2js/analyze_test_test.dart
index 4a2321b904695f6dfaff2c5edcc306869860447a..5da181caf63911bd76aa1f37b88346871d22713f 100644
--- a/tests/compiler/dart2js/analyze_test_test.dart
+++ b/tests/compiler/dart2js/analyze_test_test.dart
@@ -58,8 +58,12 @@ const List<MessageKind> MESSAGE_SKIP_LIST = const <MessageKind>[
main(List<String> arguments) {
List<String> options = <String>[];
- if (arguments.contains('-v') || arguments.contains(Flags.verbose)) {
- options.add(Flags.verbose);
+ for (String argument in arguments) {
+ if (argument == '-v') {
+ options.add(Flags.verbose);
+ } else if (argument.startsWith('-')) {
+ options.add(argument);
+ }
}
List<Uri> uriList = <Uri>[];
for (String arg in arguments) {
« no previous file with comments | « tests/compiler/dart2js/analyze_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698