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

Side by Side Diff: test/upgrade/git/do_not_upgrade_if_unneeded_test.dart

Issue 1491263003: Fix a bunch of tests. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years 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 integration("doesn't upgrade one locked Git package's dependencies if it's " 11 integration("doesn't upgrade one locked Git package's dependencies if it's "
12 "not necessary", () { 12 "not necessary", () {
13 ensureGit(); 13 ensureGit();
14 14
15 d.git('foo.git', [ 15 d.git('foo.git', [
16 d.libDir('foo'), 16 d.libDir('foo'),
17 d.libPubspec("foo", "1.0.0", deps: { 17 d.libPubspec("foo", "1.0.0", deps: {
18 "foo-dep": {"git": "../foo-dep.git" 18 "foo_dep": {"git": "../foo_dep.git"
19 }}) 19 }})
20 ]).create(); 20 ]).create();
21 21
22 d.git('foo-dep.git', [ 22 d.git('foo_dep.git', [
23 d.libDir('foo-dep'), 23 d.libDir('foo_dep'),
24 d.libPubspec('foo-dep', '1.0.0') 24 d.libPubspec('foo_dep', '1.0.0')
25 ]).create(); 25 ]).create();
26 26
27 d.appDir({"foo": {"git": "../foo.git"}}).create(); 27 d.appDir({"foo": {"git": "../foo.git"}}).create();
28 28
29 pubGet(); 29 pubGet();
30 30
31 d.dir(packagesPath, [ 31 d.dir(packagesPath, [
32 d.dir('foo', [ 32 d.dir('foo', [
33 d.file('foo.dart', 'main() => "foo";') 33 d.file('foo.dart', 'main() => "foo";')
34 ]), 34 ]),
35 d.dir('foo-dep', [ 35 d.dir('foo_dep', [
36 d.file('foo-dep.dart', 'main() => "foo-dep";') 36 d.file('foo_dep.dart', 'main() => "foo_dep";')
37 ]) 37 ])
38 ]).validate(); 38 ]).validate();
39 39
40 d.git('foo.git', [ 40 d.git('foo.git', [
41 d.libDir('foo', 'foo 2'), 41 d.libDir('foo', 'foo 2'),
42 d.libPubspec("foo", "1.0.0", deps: { 42 d.libPubspec("foo", "1.0.0", deps: {
43 "foo-dep": {"git": "../foo-dep.git"} 43 "foo_dep": {"git": "../foo_dep.git"}
44 }) 44 })
45 ]).create(); 45 ]).create();
46 46
47 d.git('foo-dep.git', [ 47 d.git('foo_dep.git', [
48 d.libDir('foo-dep', 'foo-dep 2'), 48 d.libDir('foo_dep', 'foo_dep 2'),
49 d.libPubspec('foo-dep', '1.0.0') 49 d.libPubspec('foo_dep', '1.0.0')
50 ]).commit(); 50 ]).commit();
51 51
52 pubUpgrade(args: ['foo']); 52 pubUpgrade(args: ['foo']);
53 53
54 d.dir(packagesPath, [ 54 d.dir(packagesPath, [
55 d.dir('foo', [ 55 d.dir('foo', [
56 d.file('foo.dart', 'main() => "foo 2";') 56 d.file('foo.dart', 'main() => "foo 2";')
57 ]), 57 ]),
58 d.dir('foo-dep', [ 58 d.dir('foo_dep', [
59 d.file('foo-dep.dart', 'main() => "foo-dep";') 59 d.file('foo_dep.dart', 'main() => "foo_dep";')
60 ]), 60 ]),
61 ]).validate(); 61 ]).validate();
62 }); 62 });
63 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698