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

Unified Diff: lib/src/backend/invoker.dart

Issue 2066113002: Add location information to the JSON reporter. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: cr Created 4 years, 6 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 | « lib/src/backend/group_entry.dart ('k') | lib/src/backend/test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/backend/invoker.dart
diff --git a/lib/src/backend/invoker.dart b/lib/src/backend/invoker.dart
index b93a801439004ff3ed0a31e5d4cbda19d77fb479..9d92eb14ca1f8fb2a4b6214c48fae3351dfb7cd5 100644
--- a/lib/src/backend/invoker.dart
+++ b/lib/src/backend/invoker.dart
@@ -25,11 +25,12 @@ import 'test_platform.dart';
class LocalTest extends Test {
final String name;
final Metadata metadata;
+ final Trace trace;
/// The test body.
final AsyncFunction _body;
- LocalTest(this.name, this.metadata, body())
+ LocalTest(this.name, this.metadata, body(), {this.trace})
: _body = body;
/// Loads a single runnable instance of this test.
@@ -40,7 +41,8 @@ class LocalTest extends Test {
Test forPlatform(TestPlatform platform, {OperatingSystem os}) {
if (!metadata.testOn.evaluate(platform, os: os)) return null;
- return new LocalTest(name, metadata.forPlatform(platform, os: os), _body);
+ return new LocalTest(name, metadata.forPlatform(platform, os: os), _body,
+ trace: trace);
}
}
« no previous file with comments | « lib/src/backend/group_entry.dart ('k') | lib/src/backend/test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698