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

Unified Diff: test/utils.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 | « test/runner/test_on_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/utils.dart
diff --git a/test/utils.dart b/test/utils.dart
index 0bdeee1297cb1c246b43d053bec1f4320be309b5..22573c8a6b25b1f635bcf064cc3cb37a2fc8e8b2 100644
--- a/test/utils.dart
+++ b/test/utils.dart
@@ -9,6 +9,7 @@ import 'dart:collection';
import 'package:unittest/src/backend/invoker.dart';
import 'package:unittest/src/backend/live_test.dart';
+import 'package:unittest/src/backend/metadata.dart';
import 'package:unittest/src/backend/state.dart';
import 'package:unittest/src/backend/suite.dart';
import 'package:unittest/src/runner/load_exception.dart';
@@ -178,7 +179,7 @@ Future pumpEventQueue([int times=20]) {
/// Returns a local [LiveTest] that runs [body].
LiveTest createTest(body()) {
- var test = new LocalTest("test", body);
+ var test = new LocalTest("test", new Metadata(), body);
var suite = new Suite([test]);
return test.load(suite);
}
« no previous file with comments | « test/runner/test_on_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698