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

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

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (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/service/malformed_test.dart
diff --git a/runtime/observatory/tests/service/malformed_test.dart b/runtime/observatory/tests/service/malformed_test.dart
index ca9d5a2829f1c63e18407303035559baff057855..ea3a093e61736668246641c2ee531436edabdd20 100644
--- a/runtime/observatory/tests/service/malformed_test.dart
+++ b/runtime/observatory/tests/service/malformed_test.dart
@@ -12,7 +12,7 @@ var tests = [
bool caughtException;
try {
await isolate.invokeRpc('_respondWithMalformedObject', {});
- expect(false, isTrue, reason: 'Unreachable');
+ expect(false, isTrue, reason:'Unreachable');
} on MalformedResponseRpcException catch (e) {
caughtException = true;
expect(e.message, equals("Response is missing the 'type' field"));
@@ -25,14 +25,13 @@ var tests = [
bool caughtException;
try {
await isolate.invokeRpc('_respondWithMalformedJson', {});
- expect(false, isTrue, reason: 'Unreachable');
+ expect(false, isTrue, reason:'Unreachable');
} on NetworkRpcException catch (e) {
caughtException = true;
- expect(
- e.message,
- startsWith("Canceling request: "
- "Connection saw corrupt JSON message: "
- "FormatException: Unexpected character"));
+ expect(e.message,
+ startsWith("Canceling request: "
+ "Connection saw corrupt JSON message: "
+ "FormatException: Unexpected character"));
}
expect(caughtException, isTrue);
},
« no previous file with comments | « runtime/observatory/tests/service/logging_test.dart ('k') | runtime/observatory/tests/service/metrics_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698