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

Unified Diff: runtime/observatory/tests/observatory_ui/context_ref/element_test.dart

Issue 2873013004: Omnibus Observatory UI fixes: (Closed)
Patch Set: Created 3 years, 7 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
Index: runtime/observatory/tests/observatory_ui/context_ref/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/context_ref/element_test.dart b/runtime/observatory/tests/observatory_ui/context_ref/element_test.dart
index 3ab0a667a0e76f3c507216f3901c0662a5ed0e17..dadeb4d3f45d5adc18aa560e937c2c6d3c0c40f0 100644
--- a/runtime/observatory/tests/observatory_ui/context_ref/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/context_ref/element_test.dart
@@ -12,14 +12,16 @@ main() {
const isolate = const IsolateRefMock();
const context = const ContextRefMock();
+ final objects = new ObjectRepositoryMock();
+
test('instantiation', () {
- final e = new ContextRefElement(isolate, context);
+ final e = new ContextRefElement(isolate, context, objects);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.isolate, equals(isolate));
expect(e.context, equals(context));
});
test('elements created after attachment', () async {
- final e = new ContextRefElement(isolate, context);
+ final e = new ContextRefElement(isolate, context, objects);
document.body.append(e);
await e.onRendered.first;
expect(e.children.length, isNonZero, reason: 'has elements');

Powered by Google App Engine
This is Rietveld 408576698