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

Unified Diff: test/runner/loader_test.dart

Issue 1379203002: Refactor groups to pipe them through to the runner. (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 | « test/runner/load_suite_test.dart ('k') | test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/loader_test.dart
diff --git a/test/runner/loader_test.dart b/test/runner/loader_test.dart
index 01057b2e5732b5f971d1cae6f045275e14d51b93..0defff6e0c6dbb117b82c63b6ecc90031cacd034 100644
--- a/test/runner/loader_test.dart
+++ b/test/runner/loader_test.dart
@@ -63,15 +63,15 @@ void main() {
expect(suite.platform, equals(TestPlatform.vm));
});
- test("returns tests with the correct names and platforms", () {
- expect(suite.tests, hasLength(3));
- expect(suite.tests[0].name, equals("success"));
- expect(suite.tests[1].name, equals("failure"));
- expect(suite.tests[2].name, equals("error"));
+ test("returns entries with the correct names and platforms", () {
+ expect(suite.entries, hasLength(3));
+ expect(suite.entries[0].name, equals("success"));
+ expect(suite.entries[1].name, equals("failure"));
+ expect(suite.entries[2].name, equals("error"));
});
test("can load and run a successful test", () {
- var liveTest = suite.tests[0].load(suite);
+ var liveTest = suite.entries[0].load(suite);
expectStates(liveTest, [
const State(Status.running, Result.success),
@@ -83,7 +83,7 @@ void main() {
});
test("can load and run a failing test", () {
- var liveTest = suite.tests[1].load(suite);
+ var liveTest = suite.entries[1].load(suite);
expectSingleFailure(liveTest);
return liveTest.run().whenComplete(() => liveTest.close());
});
@@ -134,7 +134,7 @@ void main() {
test("can run tests in those suites", () {
var suite = suites.firstWhere((suite) => suite.path.contains("a_test"));
- var liveTest = suite.tests[1].load(suite);
+ var liveTest = suite.entries[1].load(suite);
expectSingleFailure(liveTest);
return liveTest.run().whenComplete(() => liveTest.close());
});
@@ -152,7 +152,7 @@ void main() {
expect(suites, hasLength(1));
var loadSuite = suites.first;
- var liveTest = await loadSuite.tests.single.load(loadSuite);
+ var liveTest = await loadSuite.entries.single.load(loadSuite);
expect(liveTest.onPrint.first, completion(equals("print within test")));
await liveTest.run();
expectTestPassed(liveTest);
« no previous file with comments | « test/runner/load_suite_test.dart ('k') | test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698