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

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

Issue 2656503004: Revert "Remove package:unittest from some tests" (Closed)
Patch Set: Created 3 years, 11 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/schedule_microtask3_test.dart ('k') | tests/lib/async/stream_controller_async_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}));
});
}
« no previous file with comments | « tests/lib/async/schedule_microtask3_test.dart ('k') | tests/lib/async/stream_controller_async_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698