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

Unified Diff: lib/src/executable.dart

Issue 1062683004: Preliminary safari support. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: merge Created 5 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
Index: lib/src/executable.dart
diff --git a/lib/src/executable.dart b/lib/src/executable.dart
index aad1fcd6310a86e7be05ea0110b388ae116df0c7..0173315df98a3226f9a847d6f28384c7ef52fd53 100644
--- a/lib/src/executable.dart
+++ b/lib/src/executable.dart
@@ -72,6 +72,9 @@ bool get _usesTransformer {
}
void main(List<String> args) {
+ var allPlatforms = TestPlatform.all.toList();
+ if (!Platform.isMacOS) allPlatforms.remove(TestPlatform.safari);
+
_parser.addFlag("help", abbr: "h", negatable: false,
help: "Shows this usage information.");
_parser.addOption("package-root", hide: true);
@@ -85,7 +88,7 @@ void main(List<String> args) {
_parser.addOption("platform",
abbr: 'p',
help: 'The platform(s) on which to run the tests.',
- allowed: TestPlatform.all.map((platform) => platform.identifier).toList(),
+ allowed: allPlatforms.map((platform) => platform.identifier).toList(),
defaultsTo: 'vm',
allowMultiple: true);
_parser.addOption("concurrency",

Powered by Google App Engine
This is Rietveld 408576698