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

Unified Diff: lib/metatest.dart

Issue 1246853002: Update metatest for the latest test package. (Closed) Base URL: git@github.com:dart-lang/metatest@master
Patch Set: Missing import. Created 5 years, 5 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 | « CHANGELOG.md ('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 61a4ef000b3ee605b1dc3512b093b3a01c885b0d..8eb89012bbd2e4db86567208655da7222f76c1bd 100644
--- a/lib/metatest.dart
+++ b/lib/metatest.dart
@@ -14,6 +14,7 @@ import 'dart:isolate';
// TODO(nweiz): Stop importing from src when dart-lang/test#48 is fixed.
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';
@@ -66,7 +67,7 @@ void _setUpTest(String description, void body(),
var declarer = new Declarer();
runZoned(body, zoneValues: {#test.declarer: declarer});
- var engine = new Engine([new Suite(declarer.tests)]);
+ var engine = new Engine.withSuites([new Suite(declarer.tests)]);
for (var test in engine.liveTests) {
test.onPrint.listen(print);
}
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698