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

Unified Diff: runtime/observatory/tests/service/break_on_function_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/service/break_on_function_test.dart
diff --git a/runtime/observatory/tests/service/break_on_function_test.dart b/runtime/observatory/tests/service/break_on_function_test.dart
index e428b25e24b355c175e2b552a81b856cbf13e561..128322c7eddd285bf18e295c257cf1558e875a98 100644
--- a/runtime/observatory/tests/service/break_on_function_test.dart
+++ b/runtime/observatory/tests/service/break_on_function_test.dart
@@ -11,7 +11,8 @@ import 'dart:developer';
const int LINE_A = 14;
-testFunction(flag) { // Line A.
+testFunction(flag) {
+ // Line A.
if (flag) {
print("Yes");
} else {
@@ -27,29 +28,28 @@ testMain() {
}
var tests = [
-
-hasStoppedAtBreakpoint,
+ hasStoppedAtBreakpoint,
// Add breakpoint
-(Isolate isolate) async {
- var rootLib = await isolate.rootLibrary.load();
- var function = rootLib.functions.singleWhere((f) => f.name == 'testFunction');
-
- var bpt = await isolate.addBreakpointAtEntry(function);
- expect(bpt is Breakpoint, isTrue);
- print(bpt);
-},
+ (Isolate isolate) async {
+ var rootLib = await isolate.rootLibrary.load();
+ var function =
+ rootLib.functions.singleWhere((f) => f.name == 'testFunction');
-resumeIsolate,
+ var bpt = await isolate.addBreakpointAtEntry(function);
+ expect(bpt is Breakpoint, isTrue);
+ print(bpt);
+ },
-hasStoppedAtBreakpoint,
-stoppedAtLine(LINE_A),
-resumeIsolate,
+ resumeIsolate,
-hasStoppedAtBreakpoint,
-stoppedAtLine(LINE_A),
-resumeIsolate,
+ hasStoppedAtBreakpoint,
+ stoppedAtLine(LINE_A),
+ resumeIsolate,
+ hasStoppedAtBreakpoint,
+ stoppedAtLine(LINE_A),
+ resumeIsolate,
];
main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain);

Powered by Google App Engine
This is Rietveld 408576698