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

Unified Diff: tools/testing/dart/test_options.dart

Issue 10021048: Remove need to instantiate Platform and make methods static. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add stable test binaries. Created 8 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 | « tools/testing/dart/multitest.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_options.dart
diff --git a/tools/testing/dart/test_options.dart b/tools/testing/dart/test_options.dart
index 8dad0ce5f915713a4beac977cfec877f8378a10b..99927e0b1b77a22fc5b04993a59e6546c8d484aa 100644
--- a/tools/testing/dart/test_options.dart
+++ b/tools/testing/dart/test_options.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -117,7 +117,7 @@ is 'dart file.dart' and you specify special command
'The operating system to run tests on',
['-s', '--system'],
['linux', 'macos', 'windows'],
- new Platform().operatingSystem()),
+ Platform.operatingSystem()),
new _TestOptionSpecification(
'checked',
'Run tests in checked mode',
@@ -158,7 +158,7 @@ is 'dart file.dart' and you specify special command
'The number of parallel tasks to run',
['-j', '--tasks'],
[],
- new Platform().numberOfProcessors(),
+ Platform.numberOfProcessors(),
'int'),
new _TestOptionSpecification(
'shards',
@@ -405,7 +405,7 @@ is 'dart file.dart' and you specify special command
"${config['runtime']} is invalid. Skipping this combination.");
}
if (config['runtime'] == 'ie' &&
- new Platform().operatingSystem() != 'windows') {
+ Platform.operatingSystem() != 'windows') {
isValid = false;
print("Warning cannot run Internet Explorer on non-Windows operating" +
" system.");
« no previous file with comments | « tools/testing/dart/multitest.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698