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

Unified Diff: lib/src/runner.dart

Issue 1637193003: Add suite information to the JSON reporter. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: fix changelog Created 4 years, 11 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: lib/src/runner.dart
diff --git a/lib/src/runner.dart b/lib/src/runner.dart
index ae549e89fc10e5cbdbfba3b58f6573392b89a9ab..95caaf6810f46f018d92842668b62389c26b81d0 100644
--- a/lib/src/runner.dart
+++ b/lib/src/runner.dart
@@ -181,8 +181,8 @@ class Runner {
if (new File(path).existsSync()) return _loader.loadFile(path);
return new Stream.fromIterable([
- new LoadSuite("loading $path", () =>
- throw new LoadException(path, 'Does not exist.'))
+ new LoadSuite.forLoadException(
+ new LoadException(path, 'Does not exist.'))
]);
})).map((loadSuite) {
return loadSuite.changeSuite((suite) {

Powered by Google App Engine
This is Rietveld 408576698