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

Unified Diff: lib/src/executable.dart

Issue 1062683004: Preliminary safari support. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Polish 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
« no previous file with comments | « lib/src/backend/test_platform.dart ('k') | lib/src/runner/browser/safari.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/executable.dart
diff --git a/lib/src/executable.dart b/lib/src/executable.dart
index e774dc43f545816de81ac4ec01c8989ab3d575bb..843b47fd84bcae4bdad6adba9616ea0b05cefc7a 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.addFlag("version", negatable: false,
@@ -87,7 +90,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",
« no previous file with comments | « lib/src/backend/test_platform.dart ('k') | lib/src/runner/browser/safari.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698