| // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| import '../descriptor.dart' as d; |
| import '../serve/utils.dart'; |
| import '../test_pub.dart'; |
| import 'utils.dart'; |
| |
| main() { |
| testWithCompiler("ignores a Dart entrypoint in a dependency", |
| (compiler) async { |
| await d.dir("foo", [ |
| d.libPubspec("foo", "0.0.1"), |
| d.dir("lib", [d.file("lib.dart", "main() => print('foo');")]) |
| ]).create(); |
| |
| await d.dir(appPath, [ |
| d.appPubspec({ |
| "foo": {"path": "../foo"} |
| }) |
| ]).create(); |
| |
| await pubGet(); |
| await pubServe(compiler: compiler); |
| await requestShould404("web/packages/foo/lib.dart.js"); |
| await endPubServe(); |
| }); |
| } |