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

Unified Diff: tests/lib/async/schedule_microtask3_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_microtask2_test.dart ('k') | tests/lib/async/schedule_microtask5_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/schedule_microtask3_test.dart
diff --git a/tests/lib/async/schedule_microtask3_test.dart b/tests/lib/async/schedule_microtask3_test.dart
index 3dda5969252386c2eeee81759d11246f8c1fa2f1..f7cb0b83d76dbb872b4eb278022150ee45a8293a 100644
--- a/tests/lib/async/schedule_microtask3_test.dart
+++ b/tests/lib/async/schedule_microtask3_test.dart
@@ -5,7 +5,8 @@
library run_async_test;
import 'dart:async';
-import 'package:test/test.dart';
+import 'package:expect/expect.dart';
+import 'package:unittest/unittest.dart';
main() {
test("run async timer after async test", () {
@@ -15,7 +16,7 @@ main() {
Timer.run(expectAsync(() { timerCallbackExecuted = true; }));
scheduleMicrotask(expectAsync(() {
- expect(timerCallbackExecuted, isFalse);
+ Expect.isFalse(timerCallbackExecuted);
}));
scheduleMicrotask(expectAsync(() {
@@ -27,12 +28,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_microtask2_test.dart ('k') | tests/lib/async/schedule_microtask5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698