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

Unified Diff: tests/lib/async/schedule_microtask2_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/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 cb87f355486f6ed97b9c3959b1aad2d167a22411..5620333e81480fa0f18b71d5afcea28a43580aab 100644
--- a/tests/lib/async/schedule_microtask2_test.dart
+++ b/tests/lib/async/schedule_microtask2_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() {
// Check that the callbacks are executed in order.
@@ -13,7 +14,7 @@ main() {
int lastCallback = -1;
for (int i = 0; i < 100; i++) {
scheduleMicrotask(expectAsync(() {
- expect(lastCallback, equals(i - 1));
+ Expect.equals(lastCallback, 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