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 // PackageRoot=none | |
6 // Packages=empty_package_dir.packages | 5 // Packages=empty_package_dir.packages |
7 | 6 |
8 // In this test, we give a packages file that associates the package 'foo' with | 7 // In this test, we give a packages file that associates the package 'foo' with |
9 // the empty string. This causes both the VM and dart2js to resolve | 8 // the empty string. This causes both the VM and dart2js to resolve |
10 // 'package:foo' imports relative to the root directory. So the import statement | 9 // 'package:foo' imports relative to the root directory. So the import statement |
11 // `import 'package:foo/foo.dart'` is equivalent to `import '/foo.dart'`. | 10 // `import 'package:foo/foo.dart'` is equivalent to `import '/foo.dart'`. |
12 library empty_package_dir_test; | 11 library empty_package_dir_test; |
13 | 12 |
14 import 'package:foo/foo.dart'; | 13 import 'package:foo/foo.dart'; |
15 | 14 |
16 main() { | 15 main() { |
17 } | 16 } |
OLD | NEW |