| 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.default_document_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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 expect(response.statusCode, HttpStatus.OK); | 148 expect(response.statusCode, HttpStatus.OK); |
| 151 expect(response.contentLength, 31); | 149 expect(response.contentLength, 31); |
| 152 expect(response.readAsString(), | 150 expect(response.readAsString(), |
| 153 completion('<html><body>files</body></html>')); | 151 completion('<html><body>files</body></html>')); |
| 154 expect(response.mimeType, 'text/html'); | 152 expect(response.mimeType, 'text/html'); |
| 155 }); | 153 }); |
| 156 }); | 154 }); |
| 157 }); | 155 }); |
| 158 }); | 156 }); |
| 159 } | 157 } |
| OLD | NEW |