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

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

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 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
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; 5 library pub_tests;
6 6
7 import 'package:scheduled_test/scheduled_test.dart'; 7 import 'package:scheduled_test/scheduled_test.dart';
8 8
9 import '../descriptor.dart' as d; 9 import '../descriptor.dart' as d;
10 import '../test_pub.dart'; 10 import '../test_pub.dart';
11 11
12 main() { 12 main() {
13 initConfig();
14 integration("does not show how many other versions are available", () { 13 integration("does not show how many other versions are available", () {
15 servePackages((builder) { 14 servePackages((builder) {
16 builder.serve("downgraded", "1.0.0"); 15 builder.serve("downgraded", "1.0.0");
17 builder.serve("downgraded", "2.0.0"); 16 builder.serve("downgraded", "2.0.0");
18 builder.serve("downgraded", "3.0.0-dev"); 17 builder.serve("downgraded", "3.0.0-dev");
19 }); 18 });
20 19
21 d.appDir({ 20 d.appDir({
22 "downgraded": "3.0.0-dev" 21 "downgraded": "3.0.0-dev"
23 }).create(); 22 }).create();
24 23
25 pubGet(); 24 pubGet();
26 25
27 // Loosen the constraints. 26 // Loosen the constraints.
28 d.appDir({ 27 d.appDir({
29 "downgraded": ">=2.0.0" 28 "downgraded": ">=2.0.0"
30 }).create(); 29 }).create();
31 30
32 pubDowngrade(output: contains("downgraded 2.0.0 (was 3.0.0-dev)")); 31 pubDowngrade(output: contains("downgraded 2.0.0 (was 3.0.0-dev)"));
33 }); 32 });
34 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698