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

Unified Diff: runtime/observatory/tests/service/breakpoint_two_args_checked_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/breakpoint_two_args_checked_test.dart
diff --git a/runtime/observatory/tests/service/breakpoint_two_args_checked_test.dart b/runtime/observatory/tests/service/breakpoint_two_args_checked_test.dart
index 610af92dc491d767ad89fbb61c90e7800d48803a..3586eb4b2154bcb79c5a3023f1b4325dcf1c2f6f 100644
--- a/runtime/observatory/tests/service/breakpoint_two_args_checked_test.dart
+++ b/runtime/observatory/tests/service/breakpoint_two_args_checked_test.dart
@@ -16,57 +16,55 @@ const int LINE_A = 26;
const int LINE_B = 27;
const int LINE_C = 28;
-class NotGeneric { }
+class NotGeneric {}
testeeMain() {
var x = new List(1);
var y = 7;
debugger();
print("Statement");
- x[0] = 3; // Line A.
- x is NotGeneric; // Line B.
- y & 4; // Line C.
+ x[0] = 3; // Line A.
+ x is NotGeneric; // Line B.
+ y & 4; // Line C.
}
var tests = [
-
-hasStoppedAtBreakpoint,
+ hasStoppedAtBreakpoint,
// Add breakpoints.
-(Isolate isolate) async {
- var rootLib = await isolate.rootLibrary.load();
- var script = rootLib.scripts[0];
-
- var bpt1 = await isolate.addBreakpoint(script, LINE_A);
- print(bpt1);
- expect(bpt1.resolved, isTrue);
- expect(await bpt1.location.getLine(), equals(LINE_A));
-
- var bpt2 = await isolate.addBreakpoint(script, LINE_B);
- print(bpt2);
- expect(bpt2.resolved, isTrue);
- expect(await bpt2.location.getLine(), equals(LINE_B));
-
- var bpt3 = await isolate.addBreakpoint(script, LINE_C);
- print(bpt3);
- expect(bpt3.resolved, isTrue);
- expect(await bpt3.location.getLine(), equals(LINE_C));
-},
-
-resumeIsolate,
-
-hasStoppedAtBreakpoint,
-stoppedAtLine(LINE_A),
-resumeIsolate,
-
-hasStoppedAtBreakpoint,
-stoppedAtLine(LINE_B),
-resumeIsolate,
-
-hasStoppedAtBreakpoint,
-stoppedAtLine(LINE_C),
-resumeIsolate,
-
+ (Isolate isolate) async {
+ var rootLib = await isolate.rootLibrary.load();
+ var script = rootLib.scripts[0];
+
+ var bpt1 = await isolate.addBreakpoint(script, LINE_A);
+ print(bpt1);
+ expect(bpt1.resolved, isTrue);
+ expect(await bpt1.location.getLine(), equals(LINE_A));
+
+ var bpt2 = await isolate.addBreakpoint(script, LINE_B);
+ print(bpt2);
+ expect(bpt2.resolved, isTrue);
+ expect(await bpt2.location.getLine(), equals(LINE_B));
+
+ var bpt3 = await isolate.addBreakpoint(script, LINE_C);
+ print(bpt3);
+ expect(bpt3.resolved, isTrue);
+ expect(await bpt3.location.getLine(), equals(LINE_C));
+ },
+
+ resumeIsolate,
+
+ hasStoppedAtBreakpoint,
+ stoppedAtLine(LINE_A),
+ resumeIsolate,
+
+ hasStoppedAtBreakpoint,
+ stoppedAtLine(LINE_B),
+ resumeIsolate,
+
+ hasStoppedAtBreakpoint,
+ stoppedAtLine(LINE_C),
+ resumeIsolate,
];
main(args) => runIsolateTests(args, tests, testeeConcurrent: testeeMain);
« no previous file with comments | « runtime/observatory/tests/service/break_on_function_test.dart ('k') | runtime/observatory/tests/service/caching_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698