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

Unified Diff: tests/html/documentfragment_test.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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/string_buffer_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 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("*"));
});
« no previous file with comments | « tests/corelib/string_buffer_test.dart ('k') | tests/html/element_classes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698