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

Unified Diff: runtime/observatory/tests/observatory_ui/isolate_reconnect/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/isolate_reconnect/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/isolate_reconnect/element_test.dart b/runtime/observatory/tests/observatory_ui/isolate_reconnect/element_test.dart
index 9a40331cc7e44e42073aa892942918ff025e45dc..9b2a782d7c28051161c2acd534328152088470b1 100644
--- a/runtime/observatory/tests/observatory_ui/isolate_reconnect/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/isolate_reconnect/element_test.dart
@@ -17,41 +17,39 @@ main() {
NotificationRepositoryMock notifications;
Uri uri;
const vm = const VMMock(isolates: const [
- const IsolateMock(id: 'i-1-id'),
- const IsolateMock(id: 'i-2-id')
+ const IsolateMock(id: 'i-1-id'), const IsolateMock(id: 'i-2-id')
]);
const missing = 'missing-id';
setUp(() {
events = new EventRepositoryMock();
notifications = new NotificationRepositoryMock();
- uri = new Uri(path: 'path');
+ uri = new Uri(path: 'path');
});
test('instantiation', () {
- final e =
- new IsolateReconnectElement(vm, events, notifications, missing, uri);
+ final e = new IsolateReconnectElement(vm, events, notifications, missing,
+ uri);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.vm, equals(vm));
expect(e.missing, equals(missing));
expect(e.uri, equals(uri));
});
test('elements created after attachment', () async {
- final e =
- new IsolateReconnectElement(vm, events, notifications, missing, uri);
+ final e = new IsolateReconnectElement(vm, events, notifications, missing,
+ uri);
document.body.append(e);
await e.onRendered.first;
expect(e.children.length, isNonZero, reason: 'has elements');
expect(e.querySelector(nTag), isNotNull, reason: 'has notifications');
- expect(
- e.querySelectorAll('.isolate-link').length, equals(vm.isolates.length),
- reason: 'has links');
+ expect(e.querySelectorAll('.isolate-link').length,
+ equals(vm.isolates.length), reason: 'has links');
e.remove();
await e.onRendered.first;
expect(e.children.length, isZero, reason: 'is empty');
});
group('updates', () {
test('are correctly listen', () async {
- final e =
- new IsolateReconnectElement(vm, events, notifications, missing, uri);
+ final e = new IsolateReconnectElement(vm, events, notifications, missing,
+ uri);
expect(events.onVMUpdateHasListener, isFalse);
document.body.append(e);
await e.onRendered.first;
@@ -61,12 +59,11 @@ main() {
expect(events.onVMUpdateHasListener, isFalse);
});
test('have effects', () async {
- final e =
- new IsolateReconnectElement(vm, events, notifications, missing, uri);
+ final e = new IsolateReconnectElement(vm, events, notifications, missing,
+ uri);
const vm2 = const VMMock(isolates: const [
- const IsolateMock(id: 'i-1-id'),
- const IsolateMock(id: 'i-2-id'),
- const IsolateMock(id: 'i-3-id')
+ const IsolateMock(id: 'i-1-id'), const IsolateMock(id: 'i-2-id'),
+ const IsolateMock(id: 'i-3-id')
]);
document.body.append(e);
await e.onRendered.first;

Powered by Google App Engine
This is Rietveld 408576698