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

Side by Side Diff: test/shelf_io_test.dart

Issue 1239013002: Use the test runner on the bots. (Closed) Base URL: git@github.com:dart-lang/shelf@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
« pubspec.yaml ('K') | « pubspec.yaml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library shelf_io_test; 5 @TestOn('vm')
kevmoo 2015/07/16 01:40:57 Do we want to keep the library def?
nweiz 2015/07/16 20:07:09 No, library tags don't do anything in tests.
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 10
11 import 'package:http/http.dart' as http; 11 import 'package:http/http.dart' as http;
12 import 'package:http_parser/http_parser.dart' as parser; 12 import 'package:http_parser/http_parser.dart' as parser;
13 import 'package:scheduled_test/scheduled_stream.dart'; 13 import 'package:scheduled_test/scheduled_stream.dart';
14 import 'package:scheduled_test/scheduled_test.dart'; 14 import 'package:scheduled_test/scheduled_test.dart';
15 import 'package:shelf/shelf.dart'; 15 import 'package:shelf/shelf.dart';
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 return schedule(() { 391 return schedule(() {
392 var request = 392 var request =
393 new http.Request('POST', Uri.parse('http://localhost:$_serverPort/')); 393 new http.Request('POST', Uri.parse('http://localhost:$_serverPort/'));
394 394
395 if (headers != null) request.headers.addAll(headers); 395 if (headers != null) request.headers.addAll(headers);
396 if (body != null) request.body = body; 396 if (body != null) request.body = body;
397 397
398 return request.send(); 398 return request.send();
399 }); 399 });
400 } 400 }
OLDNEW
« pubspec.yaml ('K') | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698