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

Unified Diff: test/frontend/tear_down_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. 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/frontend/set_up_all_test.dart ('k') | test/runner/configuration/top_level_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/frontend/tear_down_all_test.dart
diff --git a/test/frontend/tear_down_all_test.dart b/test/frontend/tear_down_all_test.dart
index a5d9e0b1f30fb963d715139a2f5c446c8f55f4c5..9b69ebe1638718a9700d825f04a9aa3b3ede815d 100644
--- a/test/frontend/tear_down_all_test.dart
+++ b/test/frontend/tear_down_all_test.dart
@@ -262,7 +262,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", () {
@@ -339,7 +339,7 @@ void main() {
test("runs further tearDownAlls", () async {
// Declare this in the outer test so if it doesn't runs, the outer test
// will fail.
- var shouldRun = expectAsync(() {});
+ var shouldRun = expectAsync0(() {});
var engine = declareEngine(() {
tearDownAll(() => throw "error");
@@ -354,7 +354,7 @@ void main() {
test("runs outer tearDownAlls", () async {
// Declare this in the outer test so if it doesn't runs, the outer test
// will fail.
- var shouldRun = expectAsync(() {});
+ var shouldRun = expectAsync0(() {});
var engine = declareEngine(() {
tearDownAll(shouldRun);
« no previous file with comments | « test/frontend/set_up_all_test.dart ('k') | test/runner/configuration/top_level_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698