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

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

Issue 2656743002: 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 f7cb0b83d76dbb872b4eb278022150ee45a8293a..3dda5969252386c2eeee81759d11246f8c1fa2f1 100644
--- a/tests/lib/async/schedule_microtask3_test.dart
+++ b/tests/lib/async/schedule_microtask3_test.dart
@@ -5,8 +5,7 @@
library run_async_test;
import 'dart:async';
-import 'package:expect/expect.dart';
-import 'package:unittest/unittest.dart';
+import 'package:test/test.dart';
main() {
test("run async timer after async test", () {
@@ -16,7 +15,7 @@ main() {
Timer.run(expectAsync(() { timerCallbackExecuted = true; }));
scheduleMicrotask(expectAsync(() {
- Expect.isFalse(timerCallbackExecuted);
+ expect(timerCallbackExecuted, isFalse);
}));
scheduleMicrotask(expectAsync(() {
@@ -28,12 +27,12 @@ main() {
}
if (sum == 0) throw "bad"; // Just to use the result.
scheduleMicrotask(expectAsync(() {
- Expect.isFalse(timerCallbackExecuted);
+ expect(timerCallbackExecuted, isFalse);
}));
}));
scheduleMicrotask(expectAsync(() {
- Expect.isFalse(timerCallbackExecuted);
+ expect(timerCallbackExecuted, isFalse);
}));
});
}
« 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