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

Unified Diff: tests/html/htmlcollection_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/element_test.dart ('k') | tests/html/isolates_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/htmlcollection_test.dart
diff --git a/tests/html/htmlcollection_test.dart b/tests/html/htmlcollection_test.dart
index cf7f1848bf79e36d4586c227947f94fda5a58903..e5e20cd8b8b382dbeb602263540583bee25c0986 100644
--- a/tests/html/htmlcollection_test.dart
+++ b/tests/html/htmlcollection_test.dart
@@ -85,12 +85,12 @@ main() {
expect(someChecked.length, 4);
expect(noneChecked.length, 4);
- expect(eachChecked.some((x) => x.checked), isTrue);
- expect(eachChecked.some((x) => !x.checked), isFalse);
- expect(someChecked.some((x) => x.checked), isTrue);
- expect(someChecked.some((x) => !x.checked), isTrue);
- expect(noneChecked.some((x) => x.checked), isFalse);
- expect(noneChecked.some((x) => !x.checked), isTrue);
+ expect(eachChecked.any((x) => x.checked), isTrue);
+ expect(eachChecked.any((x) => !x.checked), isFalse);
+ expect(someChecked.any((x) => x.checked), isTrue);
+ expect(someChecked.any((x) => !x.checked), isTrue);
+ expect(noneChecked.any((x) => x.checked), isFalse);
+ expect(noneChecked.any((x) => !x.checked), isTrue);
root.remove();
});
@@ -110,12 +110,12 @@ main() {
expect(someChecked.length, 4);
expect(noneChecked.length, 4);
- expect(eachChecked.filter((x) => x.checked).length, 4);
- expect(eachChecked.filter((x) => !x.checked).length, 0);
- expect(someChecked.filter((x) => x.checked).length, 2);
- expect(someChecked.filter((x) => !x.checked).length, 2);
- expect(noneChecked.filter((x) => x.checked).length, 0);
- expect(noneChecked.filter((x) => !x.checked).length, 4);
+ expect(eachChecked.where((x) => x.checked).length, 4);
+ expect(eachChecked.where((x) => !x.checked).length, 0);
+ expect(someChecked.where((x) => x.checked).length, 2);
+ expect(someChecked.where((x) => !x.checked).length, 2);
+ expect(noneChecked.where((x) => x.checked).length, 0);
+ expect(noneChecked.where((x) => !x.checked).length, 4);
root.remove();
});
« no previous file with comments | « tests/html/element_test.dart ('k') | tests/html/isolates_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698