OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.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 pub_tests; | 5 library pub_tests; |
6 | 6 |
7 import 'dart:io'; | |
8 | |
9 import '../descriptor.dart' as d; | 7 import '../descriptor.dart' as d; |
10 import '../test_pub.dart'; | 8 import '../test_pub.dart'; |
11 import 'utils.dart'; | 9 import 'utils.dart'; |
12 | 10 |
13 main() { | 11 main() { |
14 initConfig(); | 12 initConfig(); |
15 integration("responds with a 404 on incomplete special URLs", () { | 13 integration("responds with a 404 on incomplete special URLs", () { |
16 d.dir("foo", [ | 14 d.dir("foo", [ |
17 d.libPubspec("foo", "0.0.1") | 15 d.libPubspec("foo", "0.0.1") |
18 ]).create(); | 16 ]).create(); |
(...skipping 33 matching lines...) Loading... |
52 requestShould404("packages/foo/"); | 50 requestShould404("packages/foo/"); |
53 requestShould404("assets/foo/"); | 51 requestShould404("assets/foo/"); |
54 requestShould404("packages/unknown"); | 52 requestShould404("packages/unknown"); |
55 requestShould404("assets/unknown"); | 53 requestShould404("assets/unknown"); |
56 requestShould404("packages/unknown/"); | 54 requestShould404("packages/unknown/"); |
57 requestShould404("assets/unknown/"); | 55 requestShould404("assets/unknown/"); |
58 endPubServe(); | 56 endPubServe(); |
59 }); | 57 }); |
60 | 58 |
61 } | 59 } |
OLD | NEW |