Chromium Code Reviews

Side by Side Diff: test/downgrade/does_not_show_other_versions_test.dart

Issue 1585513002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « test/descriptor/tar.dart ('k') | test/downgrade/unlock_dependers_test.dart » ('j') | 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 library pub_tests;
6
7 import 'package:scheduled_test/scheduled_test.dart'; 5 import 'package:scheduled_test/scheduled_test.dart';
8 6
9 import '../descriptor.dart' as d; 7 import '../descriptor.dart' as d;
10 import '../test_pub.dart'; 8 import '../test_pub.dart';
11 9
12 main() { 10 main() {
13 integration("does not show how many other versions are available", () { 11 integration("does not show how many other versions are available", () {
14 servePackages((builder) { 12 servePackages((builder) {
15 builder.serve("downgraded", "1.0.0"); 13 builder.serve("downgraded", "1.0.0");
16 builder.serve("downgraded", "2.0.0"); 14 builder.serve("downgraded", "2.0.0");
17 builder.serve("downgraded", "3.0.0-dev"); 15 builder.serve("downgraded", "3.0.0-dev");
18 }); 16 });
19 17
20 d.appDir({ 18 d.appDir({
21 "downgraded": "3.0.0-dev" 19 "downgraded": "3.0.0-dev"
22 }).create(); 20 }).create();
23 21
24 pubGet(); 22 pubGet();
25 23
26 // Loosen the constraints. 24 // Loosen the constraints.
27 d.appDir({ 25 d.appDir({
28 "downgraded": ">=2.0.0" 26 "downgraded": ">=2.0.0"
29 }).create(); 27 }).create();
30 28
31 pubDowngrade(output: contains("downgraded 2.0.0 (was 3.0.0-dev)")); 29 pubDowngrade(output: contains("downgraded 2.0.0 (was 3.0.0-dev)"));
32 }); 30 });
33 } 31 }
OLDNEW
« no previous file with comments | « test/descriptor/tar.dart ('k') | test/downgrade/unlock_dependers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine