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

Unified Diff: lib/test.dart

Issue 1263503008: Add an Environment class that's exposed through RunnerSuite. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: 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
Index: lib/test.dart
diff --git a/lib/test.dart b/lib/test.dart
index aa5d4ec449cf9a42a1bf01a40764d0900de4965b..c74ac9a0a434fa7f70da35e8155bce3f4b2b033e 100644
--- a/lib/test.dart
+++ b/lib/test.dart
@@ -14,6 +14,7 @@ import 'src/frontend/timeout.dart';
import 'src/runner/engine.dart';
import 'src/runner/reporter/expanded.dart';
import 'src/runner/runner_suite.dart';
+import 'src/runner/vm/environment.dart';
import 'src/utils.dart';
export 'package:matcher/matcher.dart';
@@ -51,6 +52,9 @@ Declarer get _declarer {
_globalDeclarer = new Declarer();
scheduleMicrotask(() async {
var suite = new RunnerSuite(
+ // TODO(nweiz): Use a different environment if VM environment starts
+ // import dart:io before cross-platform libraries exist.
+ const VMEnvironment(),
_globalDeclarer.tests,
path: p.prettyUri(Uri.base),
platform: TestPlatform.vm,

Powered by Google App Engine
This is Rietveld 408576698