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

Unified Diff: runtime/observatory/tests/service/set_library_debuggable_test.dart

Issue 2829463003: Format all remaining unformatted runtime files other than multitests. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « runtime/observatory/tests/service/pause_on_unhandled_async_exceptions2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/set_library_debuggable_test.dart
diff --git a/runtime/observatory/tests/service/set_library_debuggable_test.dart b/runtime/observatory/tests/service/set_library_debuggable_test.dart
index a21c10c1dc95b0fe3db759e860a19c09d45ca356..71c9a81e9a0bfa10640090da7b0f947b6acf5b84 100644
--- a/runtime/observatory/tests/service/set_library_debuggable_test.dart
+++ b/runtime/observatory/tests/service/set_library_debuggable_test.dart
@@ -17,9 +17,9 @@ const LINE_C = 22;
testMain() async {
debugger();
- print('hi'); // LINE_A.
- print('yep'); // LINE_B.
- print('zoo'); // LINE_C.
+ print('hi'); // LINE_A.
+ print('yep'); // LINE_B.
+ print('zoo'); // LINE_C.
}
var tests = [
@@ -27,40 +27,39 @@ var tests = [
markDartColonLibrariesDebuggable,
(Isolate isolate) async {
await isolate.reload();
- Library dartCore = isolate.libraries.firstWhere(
- (Library library) => library.uri == 'dart:core');
+ Library dartCore = isolate.libraries
+ .firstWhere((Library library) => library.uri == 'dart:core');
await dartCore.reload();
expect(dartCore.debuggable, equals(true));
},
- stoppedInFunction('testMain', contains:true, includeOwner: true),
+ stoppedInFunction('testMain', contains: true, includeOwner: true),
stoppedAtLine(LINE_A),
stepInto,
stoppedInFunction('print'),
stepOut,
- stoppedInFunction('testMain', contains:true, includeOwner: true),
+ stoppedInFunction('testMain', contains: true, includeOwner: true),
stoppedAtLine(LINE_B),
(Isolate isolate) async {
// Mark 'dart:core' as not debuggable.
await isolate.reload();
- Library dartCore = isolate.libraries.firstWhere(
- (Library library) => library.uri == 'dart:core');
+ Library dartCore = isolate.libraries
+ .firstWhere((Library library) => library.uri == 'dart:core');
await dartCore.load();
expect(dartCore.debuggable, equals(true));
var setDebugParams = {
'libraryId': dartCore.id,
'isDebuggable': false,
};
- Map<String, dynamic> result =
- await isolate.invokeRpcNoUpgrade('setLibraryDebuggable',
- setDebugParams);
+ Map<String, dynamic> result = await isolate.invokeRpcNoUpgrade(
+ 'setLibraryDebuggable', setDebugParams);
expect(result['type'], equals('Success'));
await dartCore.reload();
expect(dartCore.debuggable, equals(false));
},
- stoppedInFunction('testMain', contains:true, includeOwner: true),
+ stoppedInFunction('testMain', contains: true, includeOwner: true),
stoppedAtLine(LINE_B),
stepInto,
- stoppedInFunction('testMain', contains:true, includeOwner: true),
+ stoppedInFunction('testMain', contains: true, includeOwner: true),
stoppedAtLine(LINE_C),
];
« no previous file with comments | « runtime/observatory/tests/service/pause_on_unhandled_async_exceptions2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698