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

Unified Diff: lib/metatest.dart

Issue 1313383004: Support the latest internal test API. (Closed) Base URL: git@github.com:dart-lang/metatest@master
Patch Set: Code review changes Created 5 years, 4 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 | « .gitignore ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/metatest.dart
diff --git a/lib/metatest.dart b/lib/metatest.dart
index 656cc2b65af373b0a63d51652f0df53c47d1a6c8..901c84fdfcdc6e828a3d8800a2fb98e67bc3dbe5 100644
--- a/lib/metatest.dart
+++ b/lib/metatest.dart
@@ -15,8 +15,9 @@ import 'dart:async';
import 'package:test/src/backend/declarer.dart';
import 'package:test/src/backend/live_test.dart';
import 'package:test/src/backend/state.dart';
-import 'package:test/src/backend/suite.dart';
import 'package:test/src/runner/engine.dart';
+import 'package:test/src/runner/runner_suite.dart';
+import 'package:test/src/runner/vm/environment.dart';
import 'package:test/test.dart';
/// Declares a test with the given [description] and [body].
@@ -70,7 +71,9 @@ void _setUpTest(String description, void body(),
var declarer = new Declarer();
runZoned(body, zoneValues: {#test.declarer: declarer});
- var engine = new Engine.withSuites([new Suite(declarer.tests)]);
+ var engine = new Engine.withSuites([
+ new RunnerSuite(new VMEnvironment(), declarer.tests)
+ ]);
for (var test in engine.liveTests) {
test.onPrint.listen(print);
}
« no previous file with comments | « .gitignore ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698