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

Unified Diff: tests/html/queryall_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/html/node_test.dart ('k') | tests/html/typed_arrays_5_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/queryall_test.dart
diff --git a/tests/html/queryall_test.dart b/tests/html/queryall_test.dart
index 2d3fe9583521e4e83ef5a56f0c0ddd5b622cff54..6ebce45d7cb5d41321fed7a81d0e56fed5b224d8 100644
--- a/tests/html/queryall_test.dart
+++ b/tests/html/queryall_test.dart
@@ -59,9 +59,9 @@ main() {
}
});
- test('queryAll-filter', () {
+ test('queryAll-where', () {
List<Element> all = queryAll('*');
- List<CanvasElement> canvases = all.filter((e) => e is CanvasElement);
+ Iterable<CanvasElement> canvases = all.where((e) => e is CanvasElement);
for (var e in canvases) {
expect(e is CanvasElement, isTrue);
}
« no previous file with comments | « tests/html/node_test.dart ('k') | tests/html/typed_arrays_5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698