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

Unified Diff: tests/lib/async/stream_transform_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
Index: tests/lib/async/stream_transform_test.dart
diff --git a/tests/lib/async/stream_transform_test.dart b/tests/lib/async/stream_transform_test.dart
index 15e21d1169f24f6e23d71cda96d75eeb02d111b2..8e628a3d64b5757fae40ef2371e2496cd1f6bb79 100644
--- a/tests/lib/async/stream_transform_test.dart
+++ b/tests/lib/async/stream_transform_test.dart
@@ -4,9 +4,8 @@
library stream_transform_test;
-import "package:expect/expect.dart";
import 'dart:async';
-import 'package:unittest/unittest.dart';
+import 'package:test/test.dart';
import 'event_helper.dart';
@@ -28,7 +27,7 @@ main() {
Events actual = new Events.capture(
c.stream.map((x) => x * 2).where((x) => x > 5).skip(2).take(2));
actual.onDone(expectAsync(() {
- Expect.listEquals(expected.events, actual.events);
+ expect(expected.events, equals(actual.events));
}));
input.replay(c);
});
@@ -40,7 +39,7 @@ main() {
Events actual = new Events.capture(
c.stream.map((x) => x * 2).where((x) => x > 5).skip(2).take(2));
actual.onDone(expectAsync(() {
- Expect.listEquals(expected.events, actual.events);
+ expect(expected.events, equals(actual.events));
}));
actual.pause();
input.replay(c);
« no previous file with comments | « tests/lib/async/stream_subscription_cancel_test.dart ('k') | tests/lib/async/stream_transformation_broadcast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698