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 12417004: Update the test runner to use the new dart:io API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor fixes Created 7 years, 9 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: tools/testing/dart/test_options.dart
diff --git a/tools/testing/dart/test_options.dart b/tools/testing/dart/test_options.dart
index e021210321dbb3a3085c31afc3e70d73f3bb7c87..4a5868342fcae1ede936fe9c8eefafd429abe43c 100644
--- a/tools/testing/dart/test_options.dart
+++ b/tools/testing/dart/test_options.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, 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.
@@ -655,24 +655,24 @@ Note: currently only implemented for dart2js.''',
for (var name in option.keys) {
assert(name.startsWith('-'));
var buffer = new StringBuffer();;
- buffer.add(name);
+ buffer.write(name);
if (option.type == 'bool') {
assert(option.values.isEmpty);
} else {
- buffer.add(name.startsWith('--') ? '=' : ' ');
+ buffer.write(name.startsWith('--') ? '=' : ' ');
if (option.type == 'int') {
assert(option.values.isEmpty);
- buffer.add('n (default: ${option.defaultValue})');
+ buffer.write('n (default: ${option.defaultValue})');
} else {
- buffer.add('[');
+ buffer.write('[');
bool first = true;
for (var value in option.values) {
- if (!first) buffer.add(", ");
- if (value == option.defaultValue) buffer.add('*');
- buffer.add(value);
+ if (!first) buffer.write(", ");
+ if (value == option.defaultValue) buffer.write('*');
+ buffer.write(value);
first = false;
}
- buffer.add(']');
+ buffer.write(']');
}
}
print(buffer.toString());

Powered by Google App Engine
This is Rietveld 408576698