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

Unified Diff: utils/testrunner/testrunner.dart

Issue 11033042: Change imports etc to new syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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: utils/testrunner/testrunner.dart
===================================================================
--- utils/testrunner/testrunner.dart (revision 13306)
+++ utils/testrunner/testrunner.dart (working copy)
@@ -70,14 +70,14 @@
*/
// TODO - layout tests that use PNGs rather than DRT text render dumps.
-#library('testrunner');
-#import('dart:io');
-#import('dart:isolate');
-#import('dart:math');
-#import('../../pkg/args/lib/args.dart');
+library testrunner;
+import 'dart:io';
+import 'dart:isolate';
+import 'dart:math';
+import '../../pkg/args/lib/args.dart';
-#source('options.dart');
-#source('utils.dart');
+part 'options.dart';
+part 'utils.dart';
/** The set of [PipelineRunner]s to execute. */
List _tasks;
@@ -188,6 +188,14 @@
out.writeString(msg.substring(3));
out.writeString('\n');
}
+ } else if (msg.startsWith('CONSOLE MESSAGE:')) {
+ if (!skipNonVerbose && out != null) {
+ int idx = msg.indexOf('###');
+ if (idx > 0) {
+ out.writeString(msg.substring(idx+3));
Siggi Cherem (dart-lang) 2012/10/05 21:37:51 style nit: please add spaces around +
+ out.writeString('\n');
+ }
+ }
} else if (includeVerbose && log != null) {
log.writeString(msg);
log.writeString('\n');
@@ -207,9 +215,6 @@
config['timeout'] = int.parse(config['timeout']);
config['tasks'] = int.parse(config['tasks']);
- config['keep-files'] = (config['keep-files'] &&
- !(config['list-groups'] || config['list-tests']));
-
var dartsdk = config['dartsdk'];
var pathSep = Platform.pathSeparator;

Powered by Google App Engine
This is Rietveld 408576698