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

Unified Diff: tests/html/element_classes_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/documentfragment_test.dart ('k') | tests/html/element_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/element_classes_test.dart
diff --git a/tests/html/element_classes_test.dart b/tests/html/element_classes_test.dart
index 2ef18ccfdc2d5a02f5930417ec9a8c700ff02ab3..809ef470450a0b7efaa973ab14f5a1f236c84a00 100644
--- a/tests/html/element_classes_test.dart
+++ b/tests/html/element_classes_test.dart
@@ -66,13 +66,13 @@ main() {
expect(classes, unorderedEquals(['foo', 'bar', 'baz']));
});
- test('map', () {
- expect(makeClassSet().map((c) => c.toUpperCase()),
+ test('mappedBy', () {
+ expect(makeClassSet().mappedBy((c) => c.toUpperCase()).toList(),
unorderedEquals(['FOO', 'BAR', 'BAZ']));
});
- test('filter', () {
- expect(makeClassSet().filter((c) => c.contains('a')),
+ test('where', () {
+ expect(makeClassSet().where((c) => c.contains('a')).toSet(),
unorderedEquals(['bar', 'baz']));
});
@@ -81,9 +81,9 @@ main() {
expect(makeClassSet().every((c) => c.contains('a')), isFalse);
});
- test('some', () {
- expect(makeClassSet().some((c) => c.contains('a')), isTrue);
- expect(makeClassSet().some((c) => c is num), isFalse);
+ test('any', () {
+ expect(makeClassSet().any((c) => c.contains('a')), isTrue);
+ expect(makeClassSet().any((c) => c is num), isFalse);
});
test('isEmpty', () {
« no previous file with comments | « tests/html/documentfragment_test.dart ('k') | tests/html/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698