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

Unified Diff: tests/lib/async/schedule_microtask2_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/multiple_timer_test.dart ('k') | tests/lib/async/schedule_microtask3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/schedule_microtask2_test.dart
diff --git a/tests/lib/async/schedule_microtask2_test.dart b/tests/lib/async/schedule_microtask2_test.dart
index 5620333e81480fa0f18b71d5afcea28a43580aab..cb87f355486f6ed97b9c3959b1aad2d167a22411 100644
--- a/tests/lib/async/schedule_microtask2_test.dart
+++ b/tests/lib/async/schedule_microtask2_test.dart
@@ -4,9 +4,8 @@
library run_async_test;
-import 'package:expect/expect.dart';
import 'dart:async';
-import 'package:unittest/unittest.dart';
+import 'package:test/test.dart';
main() {
// Check that the callbacks are executed in order.
@@ -14,7 +13,7 @@ main() {
int lastCallback = -1;
for (int i = 0; i < 100; i++) {
scheduleMicrotask(expectAsync(() {
- Expect.equals(lastCallback, i - 1);
+ expect(lastCallback, equals(i - 1));
lastCallback = i;
}));
}
« no previous file with comments | « tests/lib/async/multiple_timer_test.dart ('k') | tests/lib/async/schedule_microtask3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698