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

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

Issue 1469863005: Add JSON protocol support for groups. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 1 month 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 | « json_reporter.schema.json ('k') | lib/src/backend/live_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 644e49c8c82b040f63b32031ec1e6bd19c53d3ab..dfcc795e04f0749513945a01c07378f52eccc486 100644
--- a/lib/src/backend/invoker.dart
+++ b/lib/src/backend/invoker.dart
@@ -8,6 +8,7 @@ import 'dart:async';
import 'package:stack_trace/stack_trace.dart';
+import '../backend/group.dart';
import '../frontend/expect.dart';
import '../utils.dart';
import 'closed_exception.dart';
@@ -33,8 +34,8 @@ class LocalTest extends Test {
: _body = body;
/// Loads a single runnable instance of this test.
- LiveTest load(Suite suite) {
- var invoker = new Invoker._(suite, this);
+ LiveTest load(Suite suite, {Iterable<Group> groups}) {
+ var invoker = new Invoker._(suite, this, groups: groups);
return invoker.liveTest;
}
@@ -117,9 +118,9 @@ class Invoker {
/// This will be `null` until the test starts running.
Timer _timeoutTimer;
- Invoker._(Suite suite, LocalTest test) {
+ Invoker._(Suite suite, LocalTest test, {Iterable<Group> groups}) {
_controller = new LiveTestController(
- suite, test, _onRun, _onCloseCompleter.complete);
+ suite, test, _onRun, _onCloseCompleter.complete, groups: groups);
}
/// Tells the invoker that there's a callback running that it should wait for
« no previous file with comments | « json_reporter.schema.json ('k') | lib/src/backend/live_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698