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

Unified Diff: tests/html/queryall_test.dart

Issue 11187063: Generate contains() method for list mixin only if not already defined. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « lib/html/templates/immutable_list_mixin.darttemplate ('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 e75ddfbdff1a8349d428fb7edbdd491df3dc93ec..6b701573ac002a32f6cd1ec3e13868cd97fef29a 100644
--- a/tests/html/queryall_test.dart
+++ b/tests/html/queryall_test.dart
@@ -47,6 +47,13 @@ main() {
expect(all.length, equals(2));
});
+ test('queryAll-contains', () {
+ List<Element> all = queryAll('*');
+ for (var e in all) {
+ expect(all.contains(e), isTrue);
+ }
+ });
+
test('queryAll-filter', () {
List<Element> all = queryAll('*');
List<CanvasElement> canvases = all.filter((e) => e is CanvasElement);
« no previous file with comments | « lib/html/templates/immutable_list_mixin.darttemplate ('k') | tests/html/typed_arrays_5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698