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.get_handler_test; | |
6 | |
7 import 'dart:io'; | 5 import 'dart:io'; |
8 import 'package:path/path.dart' as p; | 6 import 'package:path/path.dart' as p; |
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 | 9 |
12 import 'package:shelf_static/shelf_static.dart'; | 10 import 'package:shelf_static/shelf_static.dart'; |
13 | 11 |
14 void main() { | 12 void main() { |
15 setUp(() { | 13 setUp(() { |
16 var tempDir; | 14 var tempDir; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 () => createStaticHandler(nonExistingAbsolute), throwsArgumentError); | 53 () => createStaticHandler(nonExistingAbsolute), throwsArgumentError); |
56 }); | 54 }); |
57 }); | 55 }); |
58 | 56 |
59 test('existing absolute path', () { | 57 test('existing absolute path', () { |
60 schedule(() { | 58 schedule(() { |
61 expect(() => createStaticHandler(d.defaultRoot), returnsNormally); | 59 expect(() => createStaticHandler(d.defaultRoot), returnsNormally); |
62 }); | 60 }); |
63 }); | 61 }); |
64 } | 62 } |
OLD | NEW |