| 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');
|
|
|