Index: runtime/observatory/tests/observatory_ui/nav/class-menu/element_test.dart |
diff --git a/runtime/observatory/tests/observatory_ui/nav/class-menu/element_test.dart b/runtime/observatory/tests/observatory_ui/nav/class-menu/element_test.dart |
index 32fb9f0d7af1c6435b9299bdfdc32f9c66eccc84..c622dbe6c346e9736a6b31839b28298bab456623 100644 |
--- a/runtime/observatory/tests/observatory_ui/nav/class-menu/element_test.dart |
+++ b/runtime/observatory/tests/observatory_ui/nav/class-menu/element_test.dart |
@@ -20,11 +20,12 @@ main() { |
}); |
test('elements created after attachment', () async { |
final e = new NavClassMenuElement(i_ref, c_ref); |
+ e.content = [document.createElement('content')]; |
document.body.append(e); |
await e.onRendered.first; |
- expect(e.shadowRoot.children.length, isNonZero, reason: 'has elements'); |
+ expect(e.children.length, isNonZero, reason: 'has elements'); |
e.remove(); |
await e.onRendered.first; |
- expect(e.shadowRoot.children.length, isZero, reason: 'is empty'); |
+ expect(e.children.length, isZero, reason: 'is empty'); |
}); |
} |