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

Unified Diff: runtime/observatory/tests/observatory_ui/class_tree/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/class_tree/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/class_tree/element_test.dart b/runtime/observatory/tests/observatory_ui/class_tree/element_test.dart
index f8c97858ce26eb2e41a00d82e0ccdfd1ea22eea2..495e84120e237a73a25df0dbcbb7368545b5de0b 100644
--- a/runtime/observatory/tests/observatory_ui/class_tree/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/class_tree/element_test.dart
@@ -19,8 +19,8 @@ main() {
group('instantiation', () {
test('default', () {
- final e = new ClassTreeElement(vm, isolate, events, notifications,
- new ClassRepositoryMock());
+ final e = new ClassTreeElement(
+ vm, isolate, events, notifications, new ClassRepositoryMock());
expect(e, isNotNull, reason: 'element correctly created');
});
});
@@ -31,13 +31,17 @@ main() {
const child1_id = 'c1-id';
const child2 = const ClassMock(id: child2_id);
const child1_1 = const ClassMock(id: child1_1_id);
- const child1 = const ClassMock(id: child1_id,
- subclasses: const [child1_1]);
- const object = const ClassMock(id: 'o-id',
- subclasses: const [child1, child2]);
+ const child1 =
+ const ClassMock(id: child1_id, subclasses: const [child1_1]);
+ const object =
+ const ClassMock(id: 'o-id', subclasses: const [child1, child2]);
const ids = const [child1_id, child1_1_id, child2_id];
bool rendered = false;
- final e = new ClassTreeElement(vm, isolate, events, notifications,
+ final e = new ClassTreeElement(
+ vm,
+ isolate,
+ events,
+ notifications,
new ClassRepositoryMock(
object: expectAsync((i) async {
expect(i, equals(isolate));
@@ -48,10 +52,14 @@ main() {
expect(i, equals(isolate));
expect(ids.contains(id), isTrue);
switch (id) {
- case child1_id: return child1;
- case child1_1_id: return child1_1;
- case child2_id: return child2;
- default: return null;
+ case child1_id:
+ return child1;
+ case child1_1_id:
+ return child1_1;
+ case child2_id:
+ return child2;
+ default:
+ return null;
}
}, count: 3)));
document.body.append(e);

Powered by Google App Engine
This is Rietveld 408576698