| 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.directory_listing_test; | |
| 6 | |
| 7 import 'dart:io'; | 5 import 'dart:io'; |
| 8 | 6 |
| 9 import 'package:scheduled_test/descriptor.dart' as d; | 7 import 'package:scheduled_test/descriptor.dart' as d; |
| 10 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
| 11 import 'package:shelf_static/shelf_static.dart'; | 9 import 'package:shelf_static/shelf_static.dart'; |
| 12 | 10 |
| 13 import 'test_util.dart'; | 11 import 'test_util.dart'; |
| 14 | 12 |
| 15 void main() { | 13 void main() { |
| 16 setUp(() { | 14 setUp(() { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 var handler = createStaticHandler(d.defaultRoot, listDirectories: true); | 88 var handler = createStaticHandler(d.defaultRoot, listDirectories: true); |
| 91 | 89 |
| 92 return makeRequest(handler, '/files/empty subfolder/').then((response) { | 90 return makeRequest(handler, '/files/empty subfolder/').then((response) { |
| 93 expect(response.statusCode, HttpStatus.OK); | 91 expect(response.statusCode, HttpStatus.OK); |
| 94 expect(response.readAsString(), completes); | 92 expect(response.readAsString(), completes); |
| 95 }); | 93 }); |
| 96 }); | 94 }); |
| 97 }); | 95 }); |
| 98 }); | 96 }); |
| 99 } | 97 } |
| OLD | NEW |