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

Side by Side Diff: test/global/activate/activate_hosted_after_git_test.dart

Issue 1902993003: Upgrade pub to work with crypto 1.0.0 or later. (Closed) Base URL: https://github.com/dart-lang/pub.git@master
Patch Set: Created 4 years, 8 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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:pub/src/io.dart';
6
7 import '../../descriptor.dart' as d; 5 import '../../descriptor.dart' as d;
8 import '../../test_pub.dart'; 6 import '../../test_pub.dart';
9 7
10 main() { 8 main() {
11 integration('activating a hosted package deactivates the Git one', () { 9 integration('activating a hosted package deactivates the Git one', () {
12 servePackages((builder) { 10 servePackages((builder) {
13 builder.serve("foo", "2.0.0", contents: [ 11 builder.serve("foo", "2.0.0", contents: [
14 d.dir("bin", [ 12 d.dir("bin", [
15 d.file("foo.dart", "main(args) => print('hosted');") 13 d.file("foo.dart", "main(args) => print('hosted');")
16 ]) 14 ])
(...skipping 18 matching lines...) Expand all
35 Loading source assets... 33 Loading source assets...
36 Precompiled foo:foo. 34 Precompiled foo:foo.
37 Activated foo 2.0.0."""); 35 Activated foo 2.0.0.""");
38 36
39 // Should now run the hosted one. 37 // Should now run the hosted one.
40 var pub = pubRun(global: true, args: ["foo"]); 38 var pub = pubRun(global: true, args: ["foo"]);
41 pub.stdout.expect("hosted"); 39 pub.stdout.expect("hosted");
42 pub.shouldExit(); 40 pub.shouldExit();
43 }); 41 });
44 } 42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698