| 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 check_sdk_test; | 5 library check_sdk_test; |
| 6 | 6 |
| 7 import "test_pub.dart"; | 7 import "test_pub.dart"; |
| 8 import "../../../pkg/unittest/lib/unittest.dart"; | 8 import "../../../pkg/unittest/lib/unittest.dart"; |
| 9 | 9 |
| 10 main() { | 10 main() { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 dir(appPath, [ | 28 dir(appPath, [ |
| 29 pubspec({ | 29 pubspec({ |
| 30 "name": "myapp", | 30 "name": "myapp", |
| 31 "environment": {"sdk": ">2.0.0"} | 31 "environment": {"sdk": ">2.0.0"} |
| 32 }) | 32 }) |
| 33 ]).scheduleCreate(); | 33 ]).scheduleCreate(); |
| 34 | 34 |
| 35 schedulePub(args: [command], | 35 schedulePub(args: [command], |
| 36 error: | 36 error: |
| 37 """ | 37 """ |
| 38 Some packages are not compatible with your SDK version 0.1.2+3: | 38 Some packages that were installed are not compatible with your SDK v
ersion 0.1.2+3 and may not work: |
| 39 - 'myapp' requires >2.0.0 | 39 - 'myapp' requires >2.0.0 |
| 40 | 40 |
| 41 You may be able to resolve this by upgrading to the latest Dart SDK | 41 You may be able to resolve this by upgrading to the latest Dart SDK |
| 42 or adding a version constraint to use an older version of a package. | 42 or adding a version constraint to use an older version of a package. |
| 43 """); | 43 """); |
| 44 }); | 44 }); |
| 45 | 45 |
| 46 integration("gives an error if some dependencies do not match", () { | 46 integration("gives an error if some dependencies do not match", () { |
| 47 // Using an SDK source, but this should be true of all sources. | 47 // Using an SDK source, but this should be true of all sources. |
| 48 dir(sdkPath, [ | 48 dir(sdkPath, [ |
| (...skipping 16 matching lines...) Expand all Loading... |
| 65 "foo": { "sdk": "foo" }, | 65 "foo": { "sdk": "foo" }, |
| 66 "bar": { "sdk": "bar" } | 66 "bar": { "sdk": "bar" } |
| 67 }, | 67 }, |
| 68 "environment": {"sdk": ">2.0.0"} | 68 "environment": {"sdk": ">2.0.0"} |
| 69 }) | 69 }) |
| 70 ]).scheduleCreate(); | 70 ]).scheduleCreate(); |
| 71 | 71 |
| 72 schedulePub(args: [command], | 72 schedulePub(args: [command], |
| 73 error: | 73 error: |
| 74 """ | 74 """ |
| 75 Some packages are not compatible with your SDK version 0.1.2+3: | 75 Some packages that were installed are not compatible with your SDK v
ersion 0.1.2+3 and may not work: |
| 76 - 'myapp' requires >2.0.0 | 76 - 'myapp' requires >2.0.0 |
| 77 - 'foo' requires >0.1.3 | 77 - 'foo' requires >0.1.3 |
| 78 | 78 |
| 79 You may be able to resolve this by upgrading to the latest Dart SDK | 79 You may be able to resolve this by upgrading to the latest Dart SDK |
| 80 or adding a version constraint to use an older version of a package. | 80 or adding a version constraint to use an older version of a package. |
| 81 """); | 81 """); |
| 82 }); | 82 }); |
| 83 | 83 |
| 84 integration("gives an error if a transitive dependency doesn't match", () { | 84 integration("gives an error if a transitive dependency doesn't match", () { |
| 85 // Using an SDK source, but this should be true of all sources. | 85 // Using an SDK source, but this should be true of all sources. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 103 "name": "myapp", | 103 "name": "myapp", |
| 104 "dependencies": { | 104 "dependencies": { |
| 105 "foo": { "sdk": "foo" } | 105 "foo": { "sdk": "foo" } |
| 106 } | 106 } |
| 107 }) | 107 }) |
| 108 ]).scheduleCreate(); | 108 ]).scheduleCreate(); |
| 109 | 109 |
| 110 schedulePub(args: [command], | 110 schedulePub(args: [command], |
| 111 error: | 111 error: |
| 112 """ | 112 """ |
| 113 Some packages are not compatible with your SDK version 0.1.2+3: | 113 Some packages that were installed are not compatible with your SDK v
ersion 0.1.2+3 and may not work: |
| 114 - 'bar' requires <0.1.1 | 114 - 'bar' requires <0.1.1 |
| 115 | 115 |
| 116 You may be able to resolve this by upgrading to the latest Dart SDK | 116 You may be able to resolve this by upgrading to the latest Dart SDK |
| 117 or adding a version constraint to use an older version of a package. | 117 or adding a version constraint to use an older version of a package. |
| 118 """); | 118 """); |
| 119 }); | 119 }); |
| 120 | 120 |
| 121 integration("handles a circular dependency on the root package", () { | 121 integration("handles a circular dependency on the root package", () { |
| 122 // Using an SDK source, but this should be true of all sources. | 122 // Using an SDK source, but this should be true of all sources. |
| 123 dir(sdkPath, [ | 123 dir(sdkPath, [ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 137 "dependencies": { | 137 "dependencies": { |
| 138 "foo": { "sdk": "foo" } | 138 "foo": { "sdk": "foo" } |
| 139 }, | 139 }, |
| 140 "environment": {"sdk": ">2.0.0"} | 140 "environment": {"sdk": ">2.0.0"} |
| 141 }) | 141 }) |
| 142 ]).scheduleCreate(); | 142 ]).scheduleCreate(); |
| 143 | 143 |
| 144 schedulePub(args: [command], | 144 schedulePub(args: [command], |
| 145 error: | 145 error: |
| 146 """ | 146 """ |
| 147 Some packages are not compatible with your SDK version 0.1.2+3: | 147 Some packages that were installed are not compatible with your SDK v
ersion 0.1.2+3 and may not work: |
| 148 - 'myapp' requires >2.0.0 | 148 - 'myapp' requires >2.0.0 |
| 149 - 'foo' requires >3.0.0 | 149 - 'foo' requires >3.0.0 |
| 150 | 150 |
| 151 You may be able to resolve this by upgrading to the latest Dart SDK | 151 You may be able to resolve this by upgrading to the latest Dart SDK |
| 152 or adding a version constraint to use an older version of a package. | 152 or adding a version constraint to use an older version of a package. |
| 153 """); | 153 """); |
| 154 }); | 154 }); |
| 155 } | 155 } |
| 156 } | 156 } |
| OLD | NEW |