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 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import '../../../../pkg/unittest/lib/unittest.dart'; | 9 import '../../../../pkg/unittest/lib/unittest.dart'; |
10 import '../test_pub.dart'; | 10 import '../test_pub.dart'; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 output: new RegExp(r"Dependencies installed!$")); | 60 output: new RegExp(r"Dependencies installed!$")); |
61 | 61 |
62 dir(packagesPath, [ | 62 dir(packagesPath, [ |
63 nothing("myapp_name") | 63 nothing("myapp_name") |
64 ]).scheduleValidate(); | 64 ]).scheduleValidate(); |
65 }); | 65 }); |
66 | 66 |
67 integration('does not add a package if it does not have a "lib" directory', ()
{ | 67 integration('does not add a package if it does not have a "lib" directory', ()
{ |
68 // Using an SDK source, but this should be true of all sources. | 68 // Using an SDK source, but this should be true of all sources. |
69 dir(sdkPath, [ | 69 dir(sdkPath, [ |
70 file('revision', '1234'), | 70 file('version', '0.1.2.3'), |
71 dir('pkg', [ | 71 dir('pkg', [ |
72 dir('foo', [ | 72 dir('foo', [ |
73 libPubspec('foo', '0.0.0-not.used') | 73 libPubspec('foo', '0.0.0-not.used') |
74 ]) | 74 ]) |
75 ]) | 75 ]) |
76 ]).scheduleCreate(); | 76 ]).scheduleCreate(); |
77 | 77 |
78 dir(appPath, [ | 78 dir(appPath, [ |
79 pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}}) | 79 pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}}) |
80 ]).scheduleCreate(); | 80 ]).scheduleCreate(); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 dir("packages", [ | 243 dir("packages", [ |
244 dir("myapp", [ | 244 dir("myapp", [ |
245 file('foo.dart', 'main() => "foo";') | 245 file('foo.dart', 'main() => "foo";') |
246 ]) | 246 ]) |
247 ]) | 247 ]) |
248 ]) | 248 ]) |
249 ]).scheduleValidate(); | 249 ]).scheduleValidate(); |
250 }); | 250 }); |
251 }); | 251 }); |
252 } | 252 } |
OLD | NEW |