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

Unified Diff: runtime/observatory/tests/service/code_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/code_test.dart
diff --git a/runtime/observatory/tests/service/code_test.dart b/runtime/observatory/tests/service/code_test.dart
index 5a3af8cee9e278d00eb178d7caf517946e084d15..d14c397c359972e287e54a3f77f1b5e60a41e3f1 100644
--- a/runtime/observatory/tests/service/code_test.dart
+++ b/runtime/observatory/tests/service/code_test.dart
@@ -11,7 +11,7 @@ import 'dart:async';
int counter = 0;
void funcB() {
- counter++; // line 13
+ counter++; // line 13
if (counter % 100000000 == 0) {
print(counter);
}
@@ -28,10 +28,9 @@ void testFunction() {
}
var tests = [
-
// Go to breakpoint at line 13.
-(Isolate isolate) {
- return isolate.rootLibrary.load().then((_) {
+ (Isolate isolate) {
+ return isolate.rootLibrary.load().then((_) {
// Set up a listener to wait for breakpoint events.
Completer completer = new Completer();
isolate.vm.getEventStream(VM.kDebugStream).then((stream) {
@@ -49,14 +48,14 @@ var tests = [
var script = isolate.rootLibrary.scripts[0];
var line = 13;
return isolate.addBreakpoint(script, line).then((ServiceObject bpt) {
- return completer.future; // Wait for breakpoint reached.
+ return completer.future; // Wait for breakpoint reached.
});
});
-},
+ },
// Inspect code objects for top two frames.
-(Isolate isolate) {
- return isolate.getStack().then((ServiceMap stack) {
+ (Isolate isolate) {
+ return isolate.getStack().then((ServiceMap stack) {
// Make sure we are in the right place.
expect(stack.type, equals('Stack'));
expect(stack['frames'].length, greaterThanOrEqualTo(3));
@@ -70,21 +69,22 @@ var tests = [
List tests = [];
// Load code from frame 0.
- tests.add(isolate.getObject(codeId0)..then((Code code) {
- expect(code.type, equals('Code'));
- expect(code.function.name, equals('funcB'));
- expect(code.hasDisassembly, equals(true));
- }));
+ tests.add(isolate.getObject(codeId0)
+ ..then((Code code) {
+ expect(code.type, equals('Code'));
+ expect(code.function.name, equals('funcB'));
+ expect(code.hasDisassembly, equals(true));
+ }));
// Load code from frame 0.
- tests.add(isolate.getObject(codeId1)..then((Code code) {
- expect(code.type, equals('Code'));
- expect(code.function.name, equals('funcA'));
- expect(code.hasDisassembly, equals(true));
- }));
+ tests.add(isolate.getObject(codeId1)
+ ..then((Code code) {
+ expect(code.type, equals('Code'));
+ expect(code.function.name, equals('funcA'));
+ expect(code.hasDisassembly, equals(true));
+ }));
return Future.wait(tests);
- });
-},
-
+ });
+ },
];
main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction);

Powered by Google App Engine
This is Rietveld 408576698