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

Unified Diff: test/shelf_io_test.dart

Issue 837193005: pkg/shelf: formatted code (Closed) Base URL: https://github.com/dart-lang/shelf.git@master
Patch Set: Created 5 years, 11 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: test/shelf_io_test.dart
diff --git a/test/shelf_io_test.dart b/test/shelf_io_test.dart
index c1b4a410cd5fa9c5a0688de38d2a7f2b7dd8b5f1..e79a0c21aa863240218c8aed71c4eacad5cab219 100644
--- a/test/shelf_io_test.dart
+++ b/test/shelf_io_test.dart
@@ -206,8 +206,8 @@ void main() {
return _schedulePost(body: "Hello").then((response) {
expect(response.statusCode, HttpStatus.NOT_FOUND);
expect(response.headers["date"], "Mon, 23 May 2005 22:38:34 GMT");
- expect(response.stream.bytesToString(),
- completion(equals("Hello, world!")));
+ expect(
+ response.stream.bytesToString(), completion(equals("Hello, world!")));
});
});
@@ -353,17 +353,15 @@ Future _scheduleServer(Handler handler) {
Future<http.Response> _scheduleGet({Map<String, String> headers}) {
if (headers == null) headers = {};
- return schedule(() =>
- http.get('http://localhost:$_serverPort/', headers: headers));
+ return schedule(
+ () => http.get('http://localhost:$_serverPort/', headers: headers));
}
-Future<http.StreamedResponse> _schedulePost({Map<String, String> headers,
- String body}) {
-
+Future<http.StreamedResponse> _schedulePost(
+ {Map<String, String> headers, String body}) {
return schedule(() {
-
- var request = new http.Request('POST',
- Uri.parse('http://localhost:$_serverPort/'));
+ var request =
+ new http.Request('POST', Uri.parse('http://localhost:$_serverPort/'));
if (headers != null) request.headers.addAll(headers);
if (body != null) request.body = body;
« CHANGELOG.md ('K') | « test/pipeline_test.dart ('k') | test/test_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698