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

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

Issue 12086062: Rename mappedBy to map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undo change to test-script. Created 7 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_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_from_iterable_test.dart
diff --git a/tests/lib/async/stream_from_iterable_test.dart b/tests/lib/async/stream_from_iterable_test.dart
index f724bf4b6114e366bf533a0a4e6e9ed934cc4de0..182bf1c7dc300dabae29f021b8203466775b6d5f 100644
--- a/tests/lib/async/stream_from_iterable_test.dart
+++ b/tests/lib/async/stream_from_iterable_test.dart
@@ -33,7 +33,7 @@ main() {
new IterableTest<String>(["one", "two", "three", "four"]).run();
new IterableTest<int>(new Iterable<int>.generate(1000, (i) => i)).run();
new IterableTest<String>(new Iterable<int>.generate(1000, (i) => i)
- .mappedBy((i) => "$i")).run();
+ .map((i) => "$i")).run();
Iterable<int> iter = new Iterable.generate(25, (i) => i * 2);
@@ -47,10 +47,10 @@ main() {
test("iterable-mapped-toList", () {
new Stream.fromIterable(iter)
- .mappedBy((i) => i * 3)
+ .map((i) => i * 3)
.toList()
.then(expectAsync1((actual) {
- List expected = iter.mappedBy((i) => i * 3).toList();
+ List expected = iter.map((i) => i * 3).toList();
Expect.listEquals(expected, actual);
}));
});
« no previous file with comments | « tests/lib/async/stream_controller_test.dart ('k') | tools/dom/src/CssClassSet.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698