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

Side by Side Diff: test/hosted/offline_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, 5 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) 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 pub_tests; 5 library pub_tests;
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() {
11 initConfig();
12
13 forBothPubGetAndUpgrade((command) { 11 forBothPubGetAndUpgrade((command) {
14 integration('upgrades a package using the cache', () { 12 integration('upgrades a package using the cache', () {
15 // Run the server so that we know what URL to use in the system cache. 13 // Run the server so that we know what URL to use in the system cache.
16 serveNoPackages(); 14 serveNoPackages();
17 15
18 d.cacheDir({ 16 d.cacheDir({
19 "foo": ["1.2.2", "1.2.3"], 17 "foo": ["1.2.2", "1.2.3"],
20 "bar": ["1.2.3"] 18 "bar": ["1.2.3"]
21 }, includePubspecs: true).create(); 19 }, includePubspecs: true).create();
22 20
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 }, includePubspecs: true).create(); 56 }, includePubspecs: true).create();
59 57
60 d.appDir({"foo": ">2.0.0"}).create(); 58 d.appDir({"foo": ">2.0.0"}).create();
61 59
62 pubCommand(command, args: ['--offline'], error: 60 pubCommand(command, args: ['--offline'], error:
63 "Package foo has no versions that match >2.0.0 derived from:\n" 61 "Package foo has no versions that match >2.0.0 derived from:\n"
64 "- myapp depends on version >2.0.0"); 62 "- myapp depends on version >2.0.0");
65 }); 63 });
66 }); 64 });
67 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698