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

Unified Diff: tests/html/documentfragment_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/corelib/strings_test.dart ('k') | tests/html/element_classes_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/documentfragment_test.dart
diff --git a/tests/html/documentfragment_test.dart b/tests/html/documentfragment_test.dart
index 257f9c612d26e2928df03f4eb0e5e8061623b739..0cf56268f83ecddefa2e595cdbe2d4c5d9f803f7 100644
--- a/tests/html/documentfragment_test.dart
+++ b/tests/html/documentfragment_test.dart
@@ -14,7 +14,7 @@ main() {
var isAnchorElement =
predicate((x) => x is AnchorElement, 'is an AnchorElement');
- Collection<String> _nodeStrings(Collection<Node> input) {
+ List<String> _nodeStrings(Iterable<Node> input) {
var out = new List<String>();
for (Node n in input) {
if (n is Element) {
@@ -166,9 +166,9 @@ main() {
test('accessors are wrapped', () {
init();
expect(children[0].tagName, "A");
- expect(_nodeStrings(children.filter((e) => e.tagName == "I")), ["I"]);
+ expect(_nodeStrings(children.where((e) => e.tagName == "I")), ["I"]);
expect(children.every((e) => e is Element), isTrue);
- expect(children.some((e) => e.tagName == "U"), isTrue);
+ expect(children.any((e) => e.tagName == "U"), isTrue);
expect(children.isEmpty, isFalse);
expect(children.length, 4);
expect(children[2].tagName, "I");
« no previous file with comments | « tests/corelib/strings_test.dart ('k') | tests/html/element_classes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698