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

Unified Diff: tests/language_2/async_star_pause_test.dart

Issue 2985173002: Migrate language/async_backwards... ... language/async_star_take... (Closed)
Patch Set: Update tests to Dart 2.0. Created 3 years, 5 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
Index: tests/language_2/async_star_pause_test.dart
diff --git a/tests/language/async_star_pause_test.dart b/tests/language_2/async_star_pause_test.dart
similarity index 82%
rename from tests/language/async_star_pause_test.dart
rename to tests/language_2/async_star_pause_test.dart
index d8cabd6a93b1b3fc9d0a834a6db87e9c57bcf485..8adad621fad82cd1e57ba1f8d231c8bef2ff5e69 100644
--- a/tests/language/async_star_pause_test.dart
+++ b/tests/language_2/async_star_pause_test.dart
@@ -4,11 +4,13 @@
library async_star_pause_test;
-import "package:unittest/unittest.dart";
+import "package:async_helper/async_helper.dart";
+import "package:expect/expect.dart";
import "dart:async";
main() {
- test("await for pauses stream during body", () async {
+ // await for pauses stream during body.
+ asyncTest(() async {
// Assumes await-for uses streamIterator.
var log = [];
var s = () async* {
@@ -24,7 +26,7 @@ main() {
await nextMicrotask();
log.add("$i!");
}
- expect(log, [
+ Expect.listEquals(log, [
"0-",
"0?",
"0!",
« no previous file with comments | « tests/language_2/async_star_no_cancel_test.dart ('k') | tests/language_2/async_star_regression_2238_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698