| 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 9b2a782d7c28051161c2acd534328152088470b1..9a40331cc7e44e42073aa892942918ff025e45dc 100644
|
| --- a/runtime/observatory/tests/observatory_ui/isolate_reconnect/element_test.dart
|
| +++ b/runtime/observatory/tests/observatory_ui/isolate_reconnect/element_test.dart
|
| @@ -17,39 +17,41 @@ 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;
|
| @@ -59,11 +61,12 @@ 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;
|
|
|