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

Unified Diff: tests/lib/async/stream_controller_async_test.dart

Issue 12537009: Rename XMatching to XWhere. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge and rebuild dom libraries. Created 7 years, 9 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/html/transferables_test.dart ('k') | tools/dom/src/CssClassSet.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_controller_async_test.dart
diff --git a/tests/lib/async/stream_controller_async_test.dart b/tests/lib/async/stream_controller_async_test.dart
index 91b4337b361de34f8ed700ca29b4c2cd75de9c19..2e329d38b3291f496d3c430a4224195050fb0eb2 100644
--- a/tests/lib/async/stream_controller_async_test.dart
+++ b/tests/lib/async/stream_controller_async_test.dart
@@ -156,59 +156,59 @@ testSingleController() {
testExtraMethods() {
Events sentEvents = new Events()..add(7)..add(9)..add(13)..add(87)..close();
- test("firstMatching", () {
+ test("firstWhere", () {
StreamController c = new StreamController();
- Future f = c.stream.firstMatching((x) => (x % 3) == 0);
+ Future f = c.stream.firstWhere((x) => (x % 3) == 0);
f.then(expectAsync1((v) { Expect.equals(9, v); }));
sentEvents.replay(c);
});
- test("firstMatching 2", () {
+ test("firstWhere 2", () {
StreamController c = new StreamController();
- Future f = c.stream.firstMatching((x) => (x % 4) == 0);
+ Future f = c.stream.firstWhere((x) => (x % 4) == 0);
f.catchError(expectAsync1((e) {}));
sentEvents.replay(c);
});
- test("firstMatching 3", () {
+ test("firstWhere 3", () {
StreamController c = new StreamController();
- Future f = c.stream.firstMatching((x) => (x % 4) == 0, defaultValue: () => 999);
+ Future f = c.stream.firstWhere((x) => (x % 4) == 0, defaultValue: () => 999);
f.then(expectAsync1((v) { Expect.equals(999, v); }));
sentEvents.replay(c);
});
- test("lastMatching", () {
+ test("lastWhere", () {
StreamController c = new StreamController();
- Future f = c.stream.lastMatching((x) => (x % 3) == 0);
+ Future f = c.stream.lastWhere((x) => (x % 3) == 0);
f.then(expectAsync1((v) { Expect.equals(87, v); }));
sentEvents.replay(c);
});
- test("lastMatching 2", () {
+ test("lastWhere 2", () {
StreamController c = new StreamController();
- Future f = c.stream.lastMatching((x) => (x % 4) == 0);
+ Future f = c.stream.lastWhere((x) => (x % 4) == 0);
f.catchError(expectAsync1((e) {}));
sentEvents.replay(c);
});
- test("lastMatching 3", () {
+ test("lastWhere 3", () {
StreamController c = new StreamController();
- Future f = c.stream.lastMatching((x) => (x % 4) == 0, defaultValue: () => 999);
+ Future f = c.stream.lastWhere((x) => (x % 4) == 0, defaultValue: () => 999);
f.then(expectAsync1((v) { Expect.equals(999, v); }));
sentEvents.replay(c);
});
- test("singleMatching", () {
+ test("singleWhere", () {
StreamController c = new StreamController();
- Future f = c.stream.singleMatching((x) => (x % 9) == 0);
+ Future f = c.stream.singleWhere((x) => (x % 9) == 0);
f.then(expectAsync1((v) { Expect.equals(9, v); }));
sentEvents.replay(c);
});
- test("singleMatching 2", () {
+ test("singleWhere 2", () {
StreamController c = new StreamController();
- Future f = c.stream.singleMatching((x) => (x % 3) == 0); // Matches both 9 and 87..
+ Future f = c.stream.singleWhere((x) => (x % 3) == 0); // Matches both 9 and 87..
f.catchError(expectAsync1((e) { Expect.isTrue(e.error is StateError); }));
sentEvents.replay(c);
});
« no previous file with comments | « tests/html/transferables_test.dart ('k') | tools/dom/src/CssClassSet.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698