| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library pub_tests; |
| 6 |
| 7 import 'dart:io'; |
| 8 |
| 9 import '../descriptor.dart' as d; |
| 10 import '../test_pub.dart'; |
| 11 import 'utils.dart'; |
| 12 |
| 13 main() { |
| 14 initConfig(); |
| 15 integration("responds with a 404 for a missing files in dependencies", () { |
| 16 d.dir("foo", [ |
| 17 d.libPubspec("foo", "0.0.1") |
| 18 ]).create(); |
| 19 |
| 20 d.dir(appPath, [ |
| 21 d.appPubspec({ |
| 22 "foo": {"path": "../foo"} |
| 23 }) |
| 24 ]).create(); |
| 25 |
| 26 pubInstall(); |
| 27 startPubServe(); |
| 28 requestShould404("packages/foo/nope.dart"); |
| 29 requestShould404("assets/foo/nope.png"); |
| 30 requestShould404("dir/packages/foo/nope.dart"); |
| 31 requestShould404("dir/assets/foo/nope.png"); |
| 32 endPubServe(); |
| 33 }); |
| 34 } |
| OLD | NEW |