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

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

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (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/cpu_profile_table/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/cpu_profile_table/element_test.dart b/runtime/observatory/tests/observatory_ui/cpu_profile_table/element_test.dart
index abe2db4323e47aff09a3885bc06f9429a72ff751..f4bd1c8330e0a04041a19a8276de469e5017f85b 100644
--- a/runtime/observatory/tests/observatory_ui/cpu_profile_table/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/cpu_profile_table/element_test.dart
@@ -29,18 +29,16 @@ main() {
expect(e, isNotNull, reason: 'element correctly created');
});
test('elements created', () async {
- final controller
- = new StreamController<M.SampleProfileLoadingProgressEvent>.broadcast();
- final profiles = new IsolateSampleProfileRepositoryMock(
- getter: (M.IsolateRef i, M.SampleProfileTag t, bool clear,
- bool forceFetch) {
- expect(i, equals(isolate));
- expect(t, isNotNull);
- expect(clear, isFalse);
- expect(forceFetch, isFalse);
- return controller.stream;
- }
- );
+ final controller =
+ new StreamController<M.SampleProfileLoadingProgressEvent>.broadcast();
+ final profiles = new IsolateSampleProfileRepositoryMock(getter:
+ (M.IsolateRef i, M.SampleProfileTag t, bool clear, bool forceFetch) {
+ expect(i, equals(isolate));
+ expect(t, isNotNull);
+ expect(clear, isFalse);
+ expect(forceFetch, isFalse);
+ return controller.stream;
+ });
final e = new CpuProfileTableElement(vm, isolate, events, notifs, profiles);
document.body.append(e);
await e.onRendered.first;
@@ -49,25 +47,19 @@ main() {
expect(e.querySelectorAll(cTag).length, isZero);
expect(e.querySelectorAll(tTag).length, isZero);
controller.add(new SampleProfileLoadingProgressEventMock(
- progress: new SampleProfileLoadingProgressMock(
- status: M.SampleProfileLoadingStatus.fetching
- )
- ));
+ progress: new SampleProfileLoadingProgressMock(
+ status: M.SampleProfileLoadingStatus.fetching)));
await e.onRendered.first;
expect(e.querySelectorAll(sTag).length, equals(1));
expect(e.querySelectorAll(cTag).length, isZero);
expect(e.querySelectorAll(tTag).length, isZero);
controller.add(new SampleProfileLoadingProgressEventMock(
- progress: new SampleProfileLoadingProgressMock(
- status: M.SampleProfileLoadingStatus.loading
- )
- ));
+ progress: new SampleProfileLoadingProgressMock(
+ status: M.SampleProfileLoadingStatus.loading)));
controller.add(new SampleProfileLoadingProgressEventMock(
- progress: new SampleProfileLoadingProgressMock(
- status: M.SampleProfileLoadingStatus.loaded,
- profile: new SampleProfileMock()
- )
- ));
+ progress: new SampleProfileLoadingProgressMock(
+ status: M.SampleProfileLoadingStatus.loaded,
+ profile: new SampleProfileMock())));
controller.close();
await e.onRendered.first;
expect(e.querySelectorAll(sTag).length, equals(1));

Powered by Google App Engine
This is Rietveld 408576698