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

Unified Diff: test/utils.dart

Issue 1379203002: Refactor groups to pipe them through to the runner. (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 5880149aaba33e24b73d15c0eea63f90b2dd8f25..ebcd0c0522f41bd731acec0894f411cdf2b745c4 100644
--- a/test/utils.dart
+++ b/test/utils.dart
@@ -7,6 +7,7 @@ library test.test.utils;
import 'dart:async';
import 'dart:collection';
+import 'package:test/src/backend/declarer.dart';
import 'package:test/src/backend/invoker.dart';
import 'package:test/src/backend/live_test.dart';
import 'package:test/src/backend/metadata.dart';
@@ -280,3 +281,9 @@ Future expectTestBlocks(test(), stopBlocking(value)) async {
// completes.
return future;
}
+
+/// Runs [body] with a declarer and returns the declared entries.
+List<SuiteEntry> declare(void body()) {
+ var declarer = new Declarer()..declare(body);
+ return declarer.build();
+}
« 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