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

Side by Side Diff: sdk/lib/_internal/pub/test/upgrade/git/upgrade_locked_test.dart

Issue 1165473002: Start pulling pub from its own repo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review changes 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library pub_tests;
6
7 import '../../descriptor.dart' as d;
8 import '../../test_pub.dart';
9
10 main() {
11 initConfig();
12 integration("upgrades locked Git packages", () {
13 ensureGit();
14
15 d.git('foo.git', [
16 d.libDir('foo'),
17 d.libPubspec('foo', '1.0.0')
18 ]).create();
19
20 d.git('bar.git', [
21 d.libDir('bar'),
22 d.libPubspec('bar', '1.0.0')
23 ]).create();
24
25 d.appDir({
26 "foo": {"git": "../foo.git"},
27 "bar": {"git": "../bar.git"}
28 }).create();
29
30 pubGet();
31
32 d.dir(packagesPath, [
33 d.dir('foo', [
34 d.file('foo.dart', 'main() => "foo";')
35 ]),
36 d.dir('bar', [
37 d.file('bar.dart', 'main() => "bar";')
38 ])
39 ]).validate();
40
41 d.git('foo.git', [
42 d.libDir('foo', 'foo 2'),
43 d.libPubspec('foo', '1.0.0')
44 ]).commit();
45
46 d.git('bar.git', [
47 d.libDir('bar', 'bar 2'),
48 d.libPubspec('bar', '1.0.0')
49 ]).commit();
50
51 pubUpgrade();
52
53 d.dir(packagesPath, [
54 d.dir('foo', [
55 d.file('foo.dart', 'main() => "foo 2";')
56 ]),
57 d.dir('bar', [
58 d.file('bar.dart', 'main() => "bar 2";')
59 ])
60 ]).validate();
61 });
62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698