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

Unified Diff: runtime/observatory/tests/observatory_ui/nav/vm_menu/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/nav/vm_menu/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/nav/vm_menu/element_test.dart b/runtime/observatory/tests/observatory_ui/nav/vm_menu/element_test.dart
index 0333689ef6a6a6bbd31c0e660ca507d46af80726..e29cb9afac3b72fcacf57eee8e0e361557ced3ad 100644
--- a/runtime/observatory/tests/observatory_ui/nav/vm_menu/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/nav/vm_menu/element_test.dart
@@ -8,18 +8,24 @@ import 'package:observatory/src/elements/nav/menu_item.dart';
import 'package:observatory/src/elements/nav/vm_menu.dart';
import '../../mocks.dart';
-main(){
+main() {
NavVMMenuElement.tag.ensureRegistration();
final mTag = '.nav-menu_label > a';
final miTag = NavMenuItemElement.tag.name;
EventRepositoryMock events;
- final vm1 = const VMMock(name: 'vm-name-1', displayName: 'display-name-1',
+ final vm1 = const VMMock(
+ name: 'vm-name-1',
+ displayName: 'display-name-1',
isolates: const [const IsolateRefMock(id: 'i-id-1', name: 'i-name-1')]);
- final vm2 = const VMMock(name: 'vm-name-2', displayName: 'display-name-2',
- isolates: const [const IsolateRefMock(id: 'i-id-1', name: 'i-name-1'),
- const IsolateRefMock(id: 'i-id-2', name: 'i-name-2')]);
+ final vm2 = const VMMock(
+ name: 'vm-name-2',
+ displayName: 'display-name-2',
+ isolates: const [
+ const IsolateRefMock(id: 'i-id-1', name: 'i-name-1'),
+ const IsolateRefMock(id: 'i-id-2', name: 'i-name-2')
+ ]);
setUp(() {
events = new EventRepositoryMock();
});
@@ -53,13 +59,11 @@ main(){
document.body.append(e);
await e.onRendered.first;
expect(e.querySelectorAll(mTag).single.text, equals(vm1.displayName));
- expect(e.querySelectorAll(miTag).length,
- equals(vm1.isolates.length));
+ expect(e.querySelectorAll(miTag).length, equals(vm1.isolates.length));
events.add(new VMUpdateEventMock(vm: vm2));
await e.onRendered.first;
expect(e.querySelectorAll(mTag).single.text, equals(vm2.displayName));
- expect(e.querySelectorAll(miTag).length,
- equals(vm2.isolates.length));
+ expect(e.querySelectorAll(miTag).length, equals(vm2.isolates.length));
e.remove();
});
});

Powered by Google App Engine
This is Rietveld 408576698