OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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_static.basic_file_test; | |
6 | |
7 import 'dart:io'; | 5 import 'dart:io'; |
8 import 'package:http_parser/http_parser.dart'; | 6 import 'package:http_parser/http_parser.dart'; |
9 import 'package:path/path.dart' as p; | 7 import 'package:path/path.dart' as p; |
10 import 'package:scheduled_test/descriptor.dart' as d; | 8 import 'package:scheduled_test/descriptor.dart' as d; |
11 import 'package:scheduled_test/scheduled_test.dart'; | 9 import 'package:scheduled_test/scheduled_test.dart'; |
12 | 10 |
13 import 'package:shelf_static/shelf_static.dart'; | 11 import 'package:shelf_static/shelf_static.dart'; |
14 import 'test_util.dart'; | 12 import 'test_util.dart'; |
15 | 13 |
16 void main() { | 14 void main() { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 schedule(() { | 192 schedule(() { |
195 var handler = createStaticHandler(d.defaultRoot); | 193 var handler = createStaticHandler(d.defaultRoot); |
196 | 194 |
197 return makeRequest(handler, '/random.unknown').then((response) { | 195 return makeRequest(handler, '/random.unknown').then((response) { |
198 expect(response.mimeType, isNull); | 196 expect(response.mimeType, isNull); |
199 }); | 197 }); |
200 }); | 198 }); |
201 }); | 199 }); |
202 }); | 200 }); |
203 } | 201 } |
OLD | NEW |