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

Unified Diff: tests/lib/async/stream_transform_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
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 8e628a3d64b5757fae40ef2371e2496cd1f6bb79..15e21d1169f24f6e23d71cda96d75eeb02d111b2 100644
--- a/tests/lib/async/stream_transform_test.dart
+++ b/tests/lib/async/stream_transform_test.dart
@@ -4,8 +4,9 @@
library stream_transform_test;
+import "package:expect/expect.dart";
import 'dart:async';
-import 'package:test/test.dart';
+import 'package:unittest/unittest.dart';
import 'event_helper.dart';
@@ -27,7 +28,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(expected.events, equals(actual.events));
+ Expect.listEquals(expected.events, actual.events);
}));
input.replay(c);
});
@@ -39,7 +40,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(expected.events, equals(actual.events));
+ Expect.listEquals(expected.events, 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