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; |
} |