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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « lib/src/solver/backtracking_solver.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import 'package:path/path.dart' as path; 5 import 'package:path/path.dart' as path;
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 ]).create(); 79 ]).create();
80 80
81 pubCommand(command); 81 pubCommand(command);
82 82
83 d.packagesDir({ 83 d.packagesDir({
84 "foo": "2.0.0", 84 "foo": "2.0.0",
85 "bar": "1.0.0" 85 "bar": "1.0.0"
86 }).validate(); 86 }).validate();
87 }); 87 });
88 88
89 integration("ignores SDK constraints", () {
90 servePackages((builder) {
91 builder.serve("foo", "1.0.0", pubspec: {
92 "environment": {
93 "sdk": "5.6.7-fblthp"
94 }
95 });
96 });
97
98 d.dir(appPath, [
99 d.pubspec({
100 "name": "myapp",
101 "dependency_overrides": {
102 "foo": "any"
103 }
104 })
105 ]).create();
106
107 pubCommand(command);
108
109 d.packagesDir({
110 "foo": "1.0.0"
111 }).validate();
112 });
113
89 integration("warns about overridden dependencies", () { 114 integration("warns about overridden dependencies", () {
90 servePackages((builder) { 115 servePackages((builder) {
91 builder.serve("foo", "1.0.0"); 116 builder.serve("foo", "1.0.0");
92 builder.serve("bar", "1.0.0"); 117 builder.serve("bar", "1.0.0");
93 }); 118 });
94 119
95 d.dir("baz", [ 120 d.dir("baz", [
96 d.libDir("baz"), 121 d.libDir("baz"),
97 d.libPubspec("baz", "0.0.1") 122 d.libPubspec("baz", "0.0.1")
98 ]).create(); 123 ]).create();
(...skipping 14 matching lines...) Expand all
113 schedulePub(args: [command.name], output: command.success, error: 138 schedulePub(args: [command.name], output: command.success, error:
114 """ 139 """
115 Warning: You are using these overridden dependencies: 140 Warning: You are using these overridden dependencies:
116 ! bar 1.0.0 141 ! bar 1.0.0
117 ! baz 0.0.1 from path $bazPath 142 ! baz 0.0.1 from path $bazPath
118 ! foo 1.0.0 143 ! foo 1.0.0
119 """); 144 """);
120 }); 145 });
121 }); 146 });
122 } 147 }
OLDNEW
« 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