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

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

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: Created 3 years, 9 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/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);

Powered by Google App Engine
This is Rietveld 408576698