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

Unified Diff: test/utils.dart

Issue 1390883002: Make Suite contain a single Group. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 2 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/loader_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 ebcd0c0522f41bd731acec0894f411cdf2b745c4..acbec120cd9d2f55763eb1dc83fe87cb49e37cf6 100644
--- a/test/utils.dart
+++ b/test/utils.dart
@@ -8,6 +8,8 @@ import 'dart:async';
import 'dart:collection';
import 'package:test/src/backend/declarer.dart';
+import 'package:test/src/backend/group.dart';
+import 'package:test/src/backend/group_entry.dart';
import 'package:test/src/backend/invoker.dart';
import 'package:test/src/backend/live_test.dart';
import 'package:test/src/backend/metadata.dart';
@@ -221,7 +223,7 @@ Future pumpEventQueue([int times=20]) {
/// Returns a local [LiveTest] that runs [body].
LiveTest createTest(body()) {
var test = new LocalTest("test", new Metadata(), body);
- var suite = new Suite([test]);
+ var suite = new Suite(new Group.root([test]));
return test.load(suite);
}
@@ -283,7 +285,7 @@ Future expectTestBlocks(test(), stopBlocking(value)) async {
}
/// Runs [body] with a declarer and returns the declared entries.
-List<SuiteEntry> declare(void body()) {
+List<GroupEntry> declare(void body()) {
var declarer = new Declarer()..declare(body);
- return declarer.build();
+ return declarer.build().entries;
}
« no previous file with comments | « test/runner/loader_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698