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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 dir(packagesPath, [ | 63 dir(packagesPath, [ |
64 nothing("myapp_name") | 64 nothing("myapp_name") |
65 ]).scheduleValidate(); | 65 ]).scheduleValidate(); |
66 }); | 66 }); |
67 | 67 |
68 integration('does not add a package if it does not have a "lib" ' | 68 integration('does not add a package if it does not have a "lib" ' |
69 'directory', () { | 69 'directory', () { |
70 // Using an SDK source, but this should be true of all sources. | 70 // Using an SDK source, but this should be true of all sources. |
71 dir(sdkPath, [ | 71 dir(sdkPath, [ |
72 file('revision', '1234'), | 72 file('version', '0.1.2.3'), |
73 dir('pkg', [ | 73 dir('pkg', [ |
74 dir('foo', [ | 74 dir('foo', [ |
75 libPubspec('foo', '0.0.0-not.used') | 75 libPubspec('foo', '0.0.0-not.used') |
76 ]) | 76 ]) |
77 ]) | 77 ]) |
78 ]).scheduleCreate(); | 78 ]).scheduleCreate(); |
79 | 79 |
80 dir(appPath, [ | 80 dir(appPath, [ |
81 pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}}) | 81 pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}}) |
82 ]).scheduleCreate(); | 82 ]).scheduleCreate(); |
83 | 83 |
84 schedulePub(args: ['update'], | 84 schedulePub(args: ['update'], |
85 output: new RegExp(r"Dependencies updated!$")); | 85 output: new RegExp(r"Dependencies updated!$")); |
86 | 86 |
87 packagesDir({"foo": null}).scheduleValidate(); | 87 packagesDir({"foo": null}).scheduleValidate(); |
88 }); | 88 }); |
89 } | 89 } |
OLD | NEW |