Index: runtime/observatory/tests/observatory_ui/inbound_references/element_test.dart |
diff --git a/runtime/observatory/tests/observatory_ui/inbound_references/element_test.dart b/runtime/observatory/tests/observatory_ui/inbound_references/element_test.dart |
index abf04f8f7bd317d524ca406dbdb88bca259bd4a8..5ecf47befad8e64e39cc554ed572612ebaac8751 100644 |
--- a/runtime/observatory/tests/observatory_ui/inbound_references/element_test.dart |
+++ b/runtime/observatory/tests/observatory_ui/inbound_references/element_test.dart |
@@ -43,7 +43,7 @@ main() { |
document.body.append(e); |
await e.onRendered.first; |
expect(invoked, isFalse); |
- expect(e.children.length, isNonZero, reason: 'has elements'); |
+ expect(e.children, isNotEmpty, reason: 'has elements'); |
expect(e.querySelectorAll(iTag).length, isZero); |
(e.querySelector(cTag) as CurlyBlockElement).toggle(); |
await e.onRendered.first; |
@@ -52,6 +52,6 @@ main() { |
expect(e.querySelectorAll(rTag).length, equals(1)); |
e.remove(); |
await e.onRendered.first; |
- expect(e.children.length, isZero, reason: 'is empty'); |
+ expect(e.children, isEmpty, reason: 'is empty'); |
}); |
} |