floitsch@google.com
2013-02-15 13:57:18 +00:00
parent ad839e6957
commit 0672317bec
26 changed files with 9 additions and 352 deletions
+1 -1
View File
@@ -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']));
});
+1 -1
View File
@@ -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', '']));
});
+1 -1
View File
@@ -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));