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

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

Issue 1036943002: Add a testOn parameter to test() and group(). (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Created 5 years, 9 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.dart ('k') | lib/src/backend/metadata.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 c54965e2b4223a0d6001ebcb66a3f10b81084959..53d9ad0b27a0bbca6d2f773568236eae8763ba4b 100644
--- a/lib/src/backend/invoker.dart
+++ b/lib/src/backend/invoker.dart
@@ -12,14 +12,15 @@ import '../frontend/expect.dart';
import '../utils.dart';
import 'live_test.dart';
import 'live_test_controller.dart';
+import 'metadata.dart';
import 'state.dart';
import 'suite.dart';
import 'test.dart';
/// A test in this isolate.
class LocalTest implements Test {
- /// The name of the test.
final String name;
+ final Metadata metadata;
/// The test body.
final AsyncFunction _body;
@@ -31,7 +32,7 @@ class LocalTest implements Test {
/// completion of the main body of the test.
final AsyncFunction _tearDown;
- LocalTest(this.name, body(), {tearDown()})
+ LocalTest(this.name, this.metadata, body(), {tearDown()})
: _body = body,
_tearDown = tearDown;
« no previous file with comments | « lib/src/backend/group.dart ('k') | lib/src/backend/metadata.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698