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

Unified Diff: tests/lib/async/schedule_microtask_test.dart

Issue 48483002: Remove deprecated parts of dart:async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 7 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 | « tests/lib/async/intercept_schedule_microtask6_test.dart ('k') | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/schedule_microtask_test.dart
diff --git a/tests/lib/async/schedule_microtask_test.dart b/tests/lib/async/schedule_microtask_test.dart
index 0fa718c49e0941a749efac36a62e2f46b8abf81c..681f160af82efe70fd0c7978d7be6c1c668116f9 100644
--- a/tests/lib/async/schedule_microtask_test.dart
+++ b/tests/lib/async/schedule_microtask_test.dart
@@ -10,7 +10,7 @@ import 'dart:async';
Future testOneScheduleMicrotask() {
var completer = new Completer();
Timer.run(() {
- runAsync(completer.complete);
+ scheduleMicrotask(completer.complete);
});
return completer.future;
}
@@ -22,7 +22,7 @@ Future testMultipleScheduleMicrotask() {
const TOTAL = 10;
int done = 0;
for (int i = 0; i < TOTAL; i++) {
- runAsync(() {
+ scheduleMicrotask(() {
done++;
if (done == TOTAL) completer.complete();;
});
@@ -36,7 +36,7 @@ Future testScheduleMicrotaskThenTimer() {
var completer = new Completer();
Timer.run(() {
bool scheduleMicrotaskDone = false;
- runAsync(() {
+ scheduleMicrotask(() {
Expect.isFalse(scheduleMicrotaskDone);
scheduleMicrotaskDone = true;
});
@@ -57,7 +57,7 @@ Future testTimerThenScheduleMicrotask() {
Expect.isTrue(scheduleMicrotaskDone);
completer.complete();
});
- runAsync(() {
+ scheduleMicrotask(() {
Expect.isFalse(scheduleMicrotaskDone);
scheduleMicrotaskDone = true;
});
@@ -78,10 +78,10 @@ Future testTimerThenScheduleMicrotaskChain() {
Future scheduleMicrotaskCallback() {
scheduleMicrotaskDone++;
if (scheduleMicrotaskDone != TOTAL) {
- runAsync(scheduleMicrotaskCallback);
+ scheduleMicrotask(scheduleMicrotaskCallback);
}
}
- runAsync(scheduleMicrotaskCallback);
+ scheduleMicrotask(scheduleMicrotaskCallback);
});
return completer.future;
}
« no previous file with comments | « tests/lib/async/intercept_schedule_microtask6_test.dart ('k') | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698