Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: test/dependency_override_test.dart

Issue 1293383006: Dependency overrides override SDK constraints. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/solver/backtracking_solver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dependency_override_test.dart
diff --git a/test/dependency_override_test.dart b/test/dependency_override_test.dart
index 243ec9c27889882f05c9e2c4ef24d1062dbd5698..eb1727af91eb0d61ee0915a80169bab746d39c09 100644
--- a/test/dependency_override_test.dart
+++ b/test/dependency_override_test.dart
@@ -86,6 +86,31 @@ main() {
}).validate();
});
+ integration("ignores SDK constraints", () {
+ servePackages((builder) {
+ builder.serve("foo", "1.0.0", pubspec: {
+ "environment": {
+ "sdk": "5.6.7-fblthp"
+ }
+ });
+ });
+
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "dependency_overrides": {
+ "foo": "any"
+ }
+ })
+ ]).create();
+
+ pubCommand(command);
+
+ d.packagesDir({
+ "foo": "1.0.0"
+ }).validate();
+ });
+
integration("warns about overridden dependencies", () {
servePackages((builder) {
builder.serve("foo", "1.0.0");
« no previous file with comments | « lib/src/solver/backtracking_solver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698