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"); |