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

Unified Diff: tests/lib/async/stream_first_where_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/stream_controller_async_test.dart ('k') | tests/lib/async/stream_from_iterable_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_first_where_test.dart
diff --git a/tests/lib/async/stream_first_where_test.dart b/tests/lib/async/stream_first_where_test.dart
index 9e693350c0671cafdb08dbcf044d9fa64ad9e673..6a35d266fce7b0ff8e1540e71fa9596d75d3429e 100644
--- a/tests/lib/async/stream_first_where_test.dart
+++ b/tests/lib/async/stream_first_where_test.dart
@@ -4,8 +4,9 @@
library stream_controller_async_test;
+import "package:expect/expect.dart";
import 'dart:async';
-import 'package:test/test.dart';
+import 'package:unittest/unittest.dart';
import 'event_helper.dart';
import 'stream_state_helper.dart';
@@ -20,7 +21,7 @@ main() {
test("firstWhere with super class", () {
StreamController c = new StreamController<B>();
Future f = c.stream.firstWhere((x) => false, defaultValue: () => const A());
- f.then(expectAsync((v) { expect(const A(), equals(v)); }));
+ f.then(expectAsync((v) { Expect.equals(const A(), v); }));
sentEvents.replay(c);
});
}
« no previous file with comments | « tests/lib/async/stream_controller_async_test.dart ('k') | tests/lib/async/stream_from_iterable_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698