Remove deprecated mappedBy.
Committed: https://code.google.com/p/dart/source/detail?r=18575 Reverted: http://code.google.com/p/dart/source/detail?r=18576 Review URL: https://codereview.chromium.org//12212213 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18579 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
@@ -66,7 +66,7 @@ main() {
|
||||
expect(classes, unorderedEquals(['foo', 'bar', 'baz']));
|
||||
});
|
||||
|
||||
test('mappedBy', () {
|
||||
test('map', () {
|
||||
expect(makeClassSet().map((c) => c.toUpperCase()).toList(),
|
||||
unorderedEquals(['FOO', 'BAR', 'BAZ']));
|
||||
});
|
||||
|
||||
@@ -537,7 +537,7 @@ main() {
|
||||
expect(els[2], isHRElement);
|
||||
});
|
||||
|
||||
test('mappedBy', () {
|
||||
test('map', () {
|
||||
var texts = getQueryAll().map((el) => el.text).toList();
|
||||
expect(texts, equals(['Dart!', 'Hello', '']));
|
||||
});
|
||||
|
||||
@@ -191,7 +191,7 @@ main() {
|
||||
stream.where((_) => true).listen((_) {});
|
||||
});
|
||||
|
||||
test('mappedBy', () {
|
||||
test('map', () {
|
||||
stream.map((_) => null).listen((_) {});
|
||||
});
|
||||
|
||||
|
||||
@@ -439,7 +439,7 @@ testRethrow() {
|
||||
}
|
||||
|
||||
testStream("where", (s, act) => s.where(act));
|
||||
testStream("mappedBy", (s, act) => s.map(act));
|
||||
testStream("map", (s, act) => s.map(act));
|
||||
testStream("expand", (s, act) => s.expand(act));
|
||||
testStream("where", (s, act) => s.where(act));
|
||||
testStreamError("handleError", (s, act) => s.handleError(act));
|
||||
|
||||
Reference in New Issue
Block a user