OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:io'; | 6 import 'dart:io'; |
7 | 7 |
8 import 'package:async/async.dart'; | 8 import 'package:async/async.dart'; |
9 | 9 |
10 import 'backend/group.dart'; | 10 import 'backend/group.dart'; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 engine, | 82 engine, |
83 color: config.color, | 83 color: config.color, |
84 verboseTrace: config.verboseTrace, | 84 verboseTrace: config.verboseTrace, |
85 printPath: config.paths.length > 1 || | 85 printPath: config.paths.length > 1 || |
86 new Directory(config.paths.single).existsSync(), | 86 new Directory(config.paths.single).existsSync(), |
87 printPlatform: config.platforms.length > 1); | 87 printPlatform: config.platforms.length > 1); |
88 break; | 88 break; |
89 | 89 |
90 case "json": | 90 case "json": |
91 reporter = JsonReporter.watch(engine, | 91 reporter = JsonReporter.watch(engine, |
92 verboseTrace: config.verboseTrace); | 92 verboseTrace: config.verboseTrace, jsLocations: !config.jsTrace); |
93 break; | 93 break; |
94 } | 94 } |
95 | 95 |
96 return new Runner._(config, loader, engine, reporter); | 96 return new Runner._(config, loader, engine, reporter); |
97 } | 97 } |
98 | 98 |
99 Runner._(this._config, this._loader, this._engine, this._reporter); | 99 Runner._(this._config, this._loader, this._engine, this._reporter); |
100 | 100 |
101 /// Starts the runner. | 101 /// Starts the runner. |
102 /// | 102 /// |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 await _debugOperation.valueOrCancellation(); | 374 await _debugOperation.valueOrCancellation(); |
375 }).listen(null); | 375 }).listen(null); |
376 | 376 |
377 var results = await Future.wait([ | 377 var results = await Future.wait([ |
378 _suiteSubscription.asFuture().then((_) => _engine.suiteSink.close()), | 378 _suiteSubscription.asFuture().then((_) => _engine.suiteSink.close()), |
379 _engine.run() | 379 _engine.run() |
380 ]); | 380 ]); |
381 return results.last; | 381 return results.last; |
382 } | 382 } |
383 } | 383 } |
OLD | NEW |