Index: tests/html/documentfragment_test.dart |
diff --git a/tests/html/documentfragment_test.dart b/tests/html/documentfragment_test.dart |
index 5dfd7ea0f7eecd882fe3ab37264a5df719ca69ee..35d5e61902e5ef4941ca3736ef6d30608b131c1a 100644 |
--- a/tests/html/documentfragment_test.dart |
+++ b/tests/html/documentfragment_test.dart |
@@ -117,7 +117,7 @@ main() { |
test('is initially empty', () { |
elements = new DocumentFragment().elements; |
Expect.listEquals([], elements); |
- Expect.isTrue(elements.isEmpty()); |
+ Expect.isTrue(elements.isEmpty); |
}); |
test('filters out non-element nodes', () { |
@@ -163,7 +163,7 @@ main() { |
["I"], _nodeStrings(elements.filter((e) => e.tagName == "I"))); |
Expect.isTrue(elements.every((e) => e is Element)); |
Expect.isTrue(elements.some((e) => e.tagName == "U")); |
- Expect.isFalse(elements.isEmpty()); |
+ Expect.isFalse(elements.isEmpty); |
Expect.equals(4, elements.length); |
Expect.equals("I", elements[2].tagName); |
Expect.equals("U", elements.last().tagName); |
@@ -298,7 +298,7 @@ main() { |
expectEmptyRect(rect.offset); |
expectEmptyRect(rect.scroll); |
expectEmptyRect(rect.bounding); |
- Expect.isTrue(rect.clientRects.isEmpty()); |
+ Expect.isTrue(rect.clientRects.isEmpty); |
})); |
Expect.equals("false", fragment.contentEditable); |
Expect.equals(-1, fragment.tabIndex); |
@@ -316,9 +316,9 @@ main() { |
Expect.isNull(fragment.previousElementSibling); |
Expect.isNull(fragment.offsetParent); |
Expect.isNull(fragment.parent); |
- Expect.isTrue(fragment.attributes.isEmpty()); |
- Expect.isTrue(fragment.classes.isEmpty()); |
- Expect.isTrue(fragment.dataAttributes.isEmpty()); |
+ Expect.isTrue(fragment.attributes.isEmpty); |
+ Expect.isTrue(fragment.classes.isEmpty); |
+ Expect.isTrue(fragment.dataAttributes.isEmpty); |
Expect.isFalse(fragment.matchesSelector("foo")); |
Expect.isFalse(fragment.matchesSelector("*")); |
}); |