| Index: tests/lib/async/schedule_microtask5_test.dart
|
| diff --git a/tests/lib/async/run_async5_test.dart b/tests/lib/async/schedule_microtask5_test.dart
|
| similarity index 83%
|
| rename from tests/lib/async/run_async5_test.dart
|
| rename to tests/lib/async/schedule_microtask5_test.dart
|
| index 7bfdf26e8ae4c46e5bf0d89fa4c3d1e7f687a8d7..8e068b4a082c9772824bf7405f66c6941b623f19 100644
|
| --- a/tests/lib/async/run_async5_test.dart
|
| +++ b/tests/lib/async/schedule_microtask5_test.dart
|
| @@ -13,17 +13,17 @@ main() {
|
| // Check that Timers don't run before the async callbacks.
|
| bool timerCallbackExecuted = false;
|
|
|
| - runAsync(expectAsync0(() {
|
| + scheduleMicrotask(expectAsync0(() {
|
| Expect.isFalse(timerCallbackExecuted);
|
| }));
|
|
|
| Timer.run(expectAsync0(() { timerCallbackExecuted = true; }));
|
|
|
| - runAsync(expectAsync0(() {
|
| + scheduleMicrotask(expectAsync0(() {
|
| Expect.isFalse(timerCallbackExecuted);
|
| }));
|
|
|
| - runAsync(expectAsync0(() {
|
| + scheduleMicrotask(expectAsync0(() {
|
| // Busy loop.
|
| var sum = 1;
|
| var sw = new Stopwatch()..start();
|
| @@ -31,12 +31,12 @@ main() {
|
| sum++;
|
| }
|
| if (sum == 0) throw "bad"; // Just to use the result.
|
| - runAsync(expectAsync0(() {
|
| + scheduleMicrotask(expectAsync0(() {
|
| Expect.isFalse(timerCallbackExecuted);
|
| }));
|
| }));
|
|
|
| - runAsync(expectAsync0(() {
|
| + scheduleMicrotask(expectAsync0(() {
|
| Expect.isFalse(timerCallbackExecuted);
|
| }));
|
| });
|
|
|