| Index: tests/lib/async/schedule_microtask5_test.dart
|
| diff --git a/tests/lib/async/schedule_microtask5_test.dart b/tests/lib/async/schedule_microtask5_test.dart
|
| index 8fca72c324d3e747a3021bfdfee5bb7ed7a452e7..09a093488c3466ef1098d8ee8dd5caf44f0daa1d 100644
|
| --- a/tests/lib/async/schedule_microtask5_test.dart
|
| +++ b/tests/lib/async/schedule_microtask5_test.dart
|
| @@ -4,8 +4,9 @@
|
|
|
| library run_async_test;
|
|
|
| +import "package:expect/expect.dart";
|
| import 'dart:async';
|
| -import 'package:test/test.dart';
|
| +import 'package:unittest/unittest.dart';
|
|
|
| main() {
|
| test("run async timer after async test", () {
|
| @@ -13,13 +14,13 @@ main() {
|
| bool timerCallbackExecuted = false;
|
|
|
| scheduleMicrotask(expectAsync(() {
|
| - expect(timerCallbackExecuted, isFalse);
|
| + Expect.isFalse(timerCallbackExecuted);
|
| }));
|
|
|
| Timer.run(expectAsync(() { timerCallbackExecuted = true; }));
|
|
|
| scheduleMicrotask(expectAsync(() {
|
| - expect(timerCallbackExecuted, isFalse);
|
| + Expect.isFalse(timerCallbackExecuted);
|
| }));
|
|
|
| scheduleMicrotask(expectAsync(() {
|
| @@ -31,12 +32,12 @@ main() {
|
| }
|
| if (sum == 0) throw "bad"; // Just to use the result.
|
| scheduleMicrotask(expectAsync(() {
|
| - expect(timerCallbackExecuted, isFalse);
|
| + Expect.isFalse(timerCallbackExecuted);
|
| }));
|
| }));
|
|
|
| scheduleMicrotask(expectAsync(() {
|
| - expect(timerCallbackExecuted, isFalse);
|
| + Expect.isFalse(timerCallbackExecuted);
|
| }));
|
| });
|
| }
|
|
|