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

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

Issue 2751423005: Run dartfmt on all files under runtime. (Closed)
Patch Set: Run dartfmt on all files under runtime. 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 bb83bc5cc3382b76e950f0920c071b7f6839b35a..d59410a00917ebec3a6f41b3dada8a12ff4d6b3b 100644
--- a/runtime/observatory/tests/observatory_ui/object_common/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/object_common/element_test.dart
@@ -26,8 +26,7 @@ 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));
@@ -35,8 +34,7 @@ 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');
@@ -49,20 +47,17 @@ 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);
@@ -79,20 +74,17 @@ 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