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

Side by Side Diff: sdk/lib/_internal/pub/test/global/activate/git_package_test.dart

Issue 844263004: Properly update git binary snapshots during pub upgrade. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix tests Created 5 years, 11 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 | Annotate | Revision Log
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:scheduled_test/scheduled_test.dart';
6
5 import '../../descriptor.dart' as d; 7 import '../../descriptor.dart' as d;
6 import '../../test_pub.dart'; 8 import '../../test_pub.dart';
7 9
8 main() { 10 main() {
9 initConfig(); 11 initConfig();
10 integration('activates a package from a Git repo', () { 12 integration('activates a package from a Git repo', () {
11 ensureGit(); 13 ensureGit();
12 14
13 d.git('foo.git', [ 15 d.git('foo.git', [
14 d.libPubspec("foo", "1.0.0"), 16 d.libPubspec("foo", "1.0.0"),
15 d.dir("bin", [ 17 d.dir("bin", [
16 d.file("foo.dart", "main() => print('ok');") 18 d.file("foo.dart", "main() => print('ok');")
17 ]) 19 ])
18 ]).create(); 20 ]).create();
19 21
20 schedulePub(args: ["global", "activate", "-sgit", "../foo.git"], 22 schedulePub(args: ["global", "activate", "-sgit", "../foo.git"],
21 output: ''' 23 output: allOf(
22 Resolving dependencies... 24 startsWith(
23 + foo 1.0.0 from git ../foo.git 25 'Resolving dependencies...\n'
24 Precompiling executables... 26 '+ foo 1.0.0 from git ../foo.git at '),
25 Loading source assets... 27 // Specific revision number goes here.
26 Precompiled foo:foo. 28 endsWith(
27 Activated foo 1.0.0 from Git repository "../foo.git".'''); 29 'Precompiling executables...\n'
30 'Loading source assets...\n'
31 'Precompiled foo:foo.\n'
32 'Activated foo 1.0.0 from Git repository "../foo.git".')));
28 }); 33 });
29 } 34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698