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

Unified Diff: runtime/observatory/tests/observatory_ui/field_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/field_ref/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/field_ref/element_test.dart b/runtime/observatory/tests/observatory_ui/field_ref/element_test.dart
index 3a7eb464fe71a8d78309837482a2fecba8340951..653f0c6041a9d495e64d45a61e1f4b9d532a1277 100644
--- a/runtime/observatory/tests/observatory_ui/field_ref/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/field_ref/element_test.dart
@@ -19,16 +19,16 @@ main() {
const declaredType =
const InstanceMock(kind: M.InstanceKind.type, name: 'CustomObject');
const field_non_dynamic = const FieldRefMock(declaredType: declaredType);
- final repository = new InstanceRepositoryMock();
+ final objects = new ObjectRepositoryMock();
test('instantiation', () {
- final e = new FieldRefElement(isolate, field, repository);
+ final e = new FieldRefElement(isolate, field, objects);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.isolate, equals(isolate));
expect(e.field, equals(field));
});
group('elements', () {
test('created after attachment (dynamic)', () async {
- final e = new FieldRefElement(isolate, field, repository);
+ final e = new FieldRefElement(isolate, field, objects);
document.body.append(e);
await e.onRendered.first;
expect(e.children.length, isNonZero, reason: 'has elements');
@@ -38,7 +38,7 @@ main() {
expect(e.children.length, isZero, reason: 'is empty');
});
test('created after attachment (non dynamic)', () async {
- final e = new FieldRefElement(isolate, field_non_dynamic, repository);
+ final e = new FieldRefElement(isolate, field_non_dynamic, 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