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

Unified Diff: test/runner/pause_after_load_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/runner/load_suite_test.dart ('k') | test/runner/signal_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/pause_after_load_test.dart
diff --git a/test/runner/pause_after_load_test.dart b/test/runner/pause_after_load_test.dart
index 8c701e316e76b702864d5006aa1608d3ed1639a0..1103a7094ea1b1c55aa2195862cafef5f54949b0 100644
--- a/test/runner/pause_after_load_test.dart
+++ b/test/runner/pause_after_load_test.dart
@@ -49,7 +49,7 @@ void main() {
schedule(() async {
var nextLineFired = false;
- test.stdout.next().then(expectAsync((line) {
+ test.stdout.next().then(expectAsync1((line) {
expect(line, contains("+0: test1.dart: success"));
nextLineFired = true;
}));
@@ -72,7 +72,7 @@ void main() {
schedule(() async {
var nextLineFired = false;
- test.stdout.next().then(expectAsync((line) {
+ test.stdout.next().then(expectAsync1((line) {
expect(line, contains("+1: test2.dart: success"));
nextLineFired = true;
}));
@@ -112,7 +112,7 @@ void main() {
schedule(() async {
var nextLineFired = false;
- test.stdout.next().then(expectAsync((line) {
+ test.stdout.next().then(expectAsync1((line) {
expect(line, contains("+0: [Dartium] success"));
nextLineFired = true;
}));
@@ -134,7 +134,7 @@ void main() {
schedule(() async {
var nextLineFired = false;
- test.stdout.next().then(expectAsync((line) {
+ test.stdout.next().then(expectAsync1((line) {
expect(line, contains("+1: [Chrome] success"));
nextLineFired = true;
}));
@@ -193,7 +193,7 @@ void main() {
schedule(() async {
var nextLineFired = false;
- test.stdout.next().then(expectAsync((line) {
+ test.stdout.next().then(expectAsync1((line) {
expect(line, contains("+0: [Dartium] success"));
nextLineFired = true;
}));
@@ -266,7 +266,7 @@ void main() {
schedule(() async {
var nextLineFired = false;
- test.stdout.next().then(expectAsync((line) {
+ test.stdout.next().then(expectAsync1((line) {
expect(line, contains("+0: success"));
nextLineFired = true;
}));
@@ -308,7 +308,7 @@ void main() {
schedule(() async {
var nextLineFired = false;
- test.stdout.next().then(expectAsync((line) {
+ test.stdout.next().then(expectAsync1((line) {
expect(line, contains("+0: success"));
nextLineFired = true;
}));
« no previous file with comments | « test/runner/load_suite_test.dart ('k') | test/runner/signal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698