Chromium Code Reviews

Unified Diff: test/frontend/set_up_all_test.dart

Issue 2515303002: Add expectAsyncX and expectAsyncUntilX methods, and deprecate the old methods. (Closed)
Patch Set: Mark parameter types as Object. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « test/frontend/expect_async_test.dart ('k') | test/frontend/tear_down_all_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/frontend/set_up_all_test.dart
diff --git a/test/frontend/set_up_all_test.dart b/test/frontend/set_up_all_test.dart
index 7ae113750795610bfde180b181d7bb62c56b67b8..a1f2cfc381e533be7ddbedb935c9943f9f663f71 100644
--- a/test/frontend/set_up_all_test.dart
+++ b/test/frontend/set_up_all_test.dart
@@ -204,7 +204,7 @@ void main() {
test("isn't run for a skipped group", () async {
// Declare this in the outer test so if it runs, the outer test will fail.
- var shouldNotRun = expectAsync(() {}, count: 0);
+ var shouldNotRun = expectAsync0(() {}, count: 0);
var engine = declareEngine(() {
group("skipped", () {
@@ -279,7 +279,7 @@ void main() {
test("doesn't run tests in the group", () async {
// Declare this in the outer test so if it runs, the outer test will fail.
- var shouldNotRun = expectAsync(() {}, count: 0);
+ var shouldNotRun = expectAsync0(() {}, count: 0);
var engine = declareEngine(() {
setUpAll(() => throw "error");
@@ -292,7 +292,7 @@ void main() {
test("doesn't run inner groups", () async {
// Declare this in the outer test so if it runs, the outer test will fail.
- var shouldNotRun = expectAsync(() {}, count: 0);
+ var shouldNotRun = expectAsync0(() {}, count: 0);
var engine = declareEngine(() {
setUpAll(() => throw "error");
@@ -307,7 +307,7 @@ void main() {
test("doesn't run further setUpAlls", () async {
// Declare this in the outer test so if it runs, the outer test will fail.
- var shouldNotRun = expectAsync(() {}, count: 0);
+ var shouldNotRun = expectAsync0(() {}, count: 0);
var engine = declareEngine(() {
setUpAll(() => throw "error");
« no previous file with comments | « test/frontend/expect_async_test.dart ('k') | test/frontend/tear_down_all_test.dart » ('j') | no next file with comments »

Powered by Google App Engine