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

Unified Diff: lib/src/runner/load_suite.dart

Issue 1390883002: Make Suite contain a single Group. (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 | « lib/src/runner/load_exception_suite.dart ('k') | lib/src/runner/loader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/load_suite.dart
diff --git a/lib/src/runner/load_suite.dart b/lib/src/runner/load_suite.dart
index 04eb1cbf299ff5a49c34fb28fb0e5836e1199484..a83177746f0ddd81202ef33bd62b0a1d644e6c34 100644
--- a/lib/src/runner/load_suite.dart
+++ b/lib/src/runner/load_suite.dart
@@ -9,6 +9,7 @@ import 'dart:async';
import 'package:stack_trace/stack_trace.dart';
import '../../test.dart';
+import '../backend/group.dart';
import '../backend/invoker.dart';
import '../backend/metadata.dart';
import '../backend/test.dart';
@@ -44,7 +45,7 @@ class LoadSuite extends RunnerSuite {
///
/// Load suites are guaranteed to only contain one test. This is a utility
/// method for accessing it directly.
- Test get test => entries.single as Test;
+ Test get test => this.group.entries.single as Test;
/// Creates a load suite named [name] on [platform].
///
@@ -107,15 +108,15 @@ class LoadSuite extends RunnerSuite {
}
LoadSuite._(String name, void body(), this.suite, {TestPlatform platform})
- : super(const VMEnvironment(), [
+ : super(const VMEnvironment(), new Group.root([
new LocalTest(name,
new Metadata(timeout: new Timeout(new Duration(minutes: 5))),
body)
- ], platform: platform);
+ ]), platform: platform);
/// A constructor used by [changeSuite].
LoadSuite._changeSuite(LoadSuite old, Future<RunnerSuite> this.suite)
- : super(const VMEnvironment(), old.entries, platform: old.platform);
+ : super(const VMEnvironment(), old.group, platform: old.platform);
/// Creates a new [LoadSuite] that's identical to this one, but that
/// transforms [suite] once it's loaded.
« no previous file with comments | « lib/src/runner/load_exception_suite.dart ('k') | lib/src/runner/loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698