Index: runtime/observatory/tests/observatory_ui/object_common/element_test.dart |
diff --git a/runtime/observatory/tests/observatory_ui/object_common/element_test.dart b/runtime/observatory/tests/observatory_ui/object_common/element_test.dart |
index d59410a00917ebec3a6f41b3dada8a12ff4d6b3b..bb83bc5cc3382b76e950f0920c071b7f6839b35a 100644 |
--- a/runtime/observatory/tests/observatory_ui/object_common/element_test.dart |
+++ b/runtime/observatory/tests/observatory_ui/object_common/element_test.dart |
@@ -26,7 +26,8 @@ main() { |
final instances = new InstanceRepositoryMock(); |
test('instantiation', () { |
final e = new ObjectCommonElement(isolate, object, retainedSizes, |
- reachableSizes, inbounds, paths, instances); |
+ reachableSizes, inbounds, paths, |
+ instances); |
expect(e, isNotNull, reason: 'element correctly created'); |
expect(e.isolate, equals(isolate)); |
expect(e.object, equals(object)); |
@@ -34,7 +35,8 @@ main() { |
group('elements', () { |
test('created after attachment', () async { |
final e = new ObjectCommonElement(isolate, object, retainedSizes, |
- reachableSizes, inbounds, paths, instances); |
+ reachableSizes, inbounds, paths, |
+ instances); |
document.body.append(e); |
await e.onRendered.first; |
expect(e.children.length, isNonZero, reason: 'has elements'); |
@@ -47,17 +49,20 @@ main() { |
}); |
test('created after attachment', () async { |
const value = const GuardedMock<InstanceMock>.fromValue( |
- const InstanceMock(valueAsString: '10')); |
+ const InstanceMock(valueAsString: '10') |
+ ); |
bool invoked = false; |
final reachableSizes = new ReachableSizeRepositoryMock( |
- getter: expectAsync((i, id) async { |
- expect(i, equals(isolate)); |
- expect(id, equals(object.id)); |
- invoked = true; |
- return value; |
- }, count: 1)); |
+ getter: expectAsync((i, id) async { |
+ expect(i, equals(isolate)); |
+ expect(id, equals(object.id)); |
+ invoked = true; |
+ return value; |
+ }, count: 1) |
+ ); |
final e = new ObjectCommonElement(isolate, object, retainedSizes, |
- reachableSizes, inbounds, paths, instances); |
+ reachableSizes, inbounds, paths, |
+ instances); |
document.body.append(e); |
await e.onRendered.first; |
expect(invoked, isFalse); |
@@ -74,17 +79,20 @@ main() { |
}); |
test('created after attachment', () async { |
const value = const GuardedMock<InstanceMock>.fromValue( |
- const InstanceMock(valueAsString: '10')); |
+ const InstanceMock(valueAsString: '10') |
+ ); |
bool invoked = false; |
final retainedSizes = new RetainedSizeRepositoryMock( |
- getter: expectAsync((i, id) async { |
- expect(i, equals(isolate)); |
- expect(id, equals(object.id)); |
- invoked = true; |
- return value; |
- }, count: 1)); |
+ getter: expectAsync((i, id) async { |
+ expect(i, equals(isolate)); |
+ expect(id, equals(object.id)); |
+ invoked = true; |
+ return value; |
+ }, count: 1) |
+ ); |
final e = new ObjectCommonElement(isolate, object, retainedSizes, |
- reachableSizes, inbounds, paths, instances); |
+ reachableSizes, inbounds, paths, |
+ instances); |
document.body.append(e); |
await e.onRendered.first; |
expect(invoked, isFalse); |