| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 pub_tests; | 5 library pub_tests; |
| 6 | 6 |
| 7 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
| 8 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
| 9 | 9 |
| 10 main() { | 10 main() { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 d.dir(packagesPath, [ | 24 d.dir(packagesPath, [ |
| 25 d.dir('foo', [ | 25 d.dir('foo', [ |
| 26 d.file('foo.dart', 'main() => "foo";') | 26 d.file('foo.dart', 'main() => "foo";') |
| 27 ]) | 27 ]) |
| 28 ]).validate(); | 28 ]).validate(); |
| 29 | 29 |
| 30 repo.runGit(['rm', 'pubspec.yaml']); | 30 repo.runGit(['rm', 'pubspec.yaml']); |
| 31 repo.runGit(['commit', '-m', 'delete']); | 31 repo.runGit(['commit', '-m', 'delete']); |
| 32 | 32 |
| 33 pubUpgrade(error: new RegExp(r'Could not find a file named "pubspec.yaml" ' | 33 pubUpgrade(error: new RegExp(r'Could not find a file named "pubspec.yaml" ' |
| 34 r'in "[^\n]*"\.')); | 34 r'in [^\n]*\.')); |
| 35 | 35 |
| 36 d.dir(packagesPath, [ | 36 d.dir(packagesPath, [ |
| 37 d.dir('foo', [ | 37 d.dir('foo', [ |
| 38 d.file('foo.dart', 'main() => "foo";') | 38 d.file('foo.dart', 'main() => "foo";') |
| 39 ]) | 39 ]) |
| 40 ]).validate(); | 40 ]).validate(); |
| 41 }); | 41 }); |
| 42 } | 42 } |
| OLD | NEW |