| 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.alternative_root_test; | |
| 6 | |
| 7 import 'dart:io'; | 5 import 'dart:io'; |
| 8 import 'package:scheduled_test/descriptor.dart' as d; | 6 import 'package:scheduled_test/descriptor.dart' as d; |
| 9 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
| 10 | 8 |
| 11 import 'package:shelf_static/shelf_static.dart'; | 9 import 'package:shelf_static/shelf_static.dart'; |
| 12 import 'test_util.dart'; | 10 import 'test_util.dart'; |
| 13 | 11 |
| 14 void main() { | 12 void main() { |
| 15 setUp(() { | 13 setUp(() { |
| 16 var tempDir; | 14 var tempDir; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 schedule(() { | 89 schedule(() { |
| 92 var handler = createStaticHandler(d.defaultRoot); | 90 var handler = createStaticHandler(d.defaultRoot); |
| 93 | 91 |
| 94 return makeRequest(handler, '/static/not_here.txt', handlerPath: 'static') | 92 return makeRequest(handler, '/static/not_here.txt', handlerPath: 'static') |
| 95 .then((response) { | 93 .then((response) { |
| 96 expect(response.statusCode, HttpStatus.NOT_FOUND); | 94 expect(response.statusCode, HttpStatus.NOT_FOUND); |
| 97 }); | 95 }); |
| 98 }); | 96 }); |
| 99 }); | 97 }); |
| 100 } | 98 } |
| OLD | NEW |