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

Unified Diff: lib/src/runner/load_suite.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/src/runner/load_suite.dart
diff --git a/lib/src/runner/load_suite.dart b/lib/src/runner/load_suite.dart
index c08af1ffd015ec28571ad77cd427b183be7971c2..0c1dabc5fa91afd3dae58b71e3d901b12b2272bb 100644
--- a/lib/src/runner/load_suite.dart
+++ b/lib/src/runner/load_suite.dart
@@ -15,6 +15,7 @@ import '../backend/test_platform.dart';
import '../utils.dart';
import 'load_exception.dart';
import 'runner_suite.dart';
+import 'vm/environment.dart';
/// A [Suite] emitted by a [Loader] that provides a test-like interface for
/// loading a test file.
@@ -99,7 +100,7 @@ class LoadSuite extends RunnerSuite {
}
LoadSuite._(String name, void body(), this.suite, {TestPlatform platform})
- : super([
+ : super(const VMEnvironment(), [
new LocalTest(name,
new Metadata(timeout: new Timeout(new Duration(minutes: 5))),
body)
@@ -107,7 +108,7 @@ class LoadSuite extends RunnerSuite {
/// A constructor used by [changeSuite].
LoadSuite._changeSuite(LoadSuite old, Future<RunnerSuite> this.suite)
- : super(old.tests, platform: old.platform);
+ : super(const VMEnvironment(), old.tests, platform: old.platform);
/// Creates a new [LoadSuite] that's identical to this one, but that
/// transforms [suite] once it's loaded.

Powered by Google App Engine
This is Rietveld 408576698