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

Side by Side Diff: utils/tests/pub/pub_update_repo_test.dart

Issue 10876058: Split pub tests into separate suites. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
« no previous file with comments | « utils/tests/pub/pub_update_git_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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('dart:io');
8
9 #import('test_pub.dart');
10 #import('../../../pkg/unittest/unittest.dart');
11
12 main() {
13 test("updates one locked pub server package's dependencies if it's "
14 "necessary", () {
15 servePackages([
16 package("foo", "1.0.0", [dependency("foo-dep")]),
17 package("foo-dep", "1.0.0")
18 ]);
19
20 appDir([dependency("foo")]).scheduleCreate();
21
22 schedulePub(args: ['install'],
23 output: const RegExp(@"Dependencies installed!$"));
24
25 packagesDir({
26 "foo": "1.0.0",
27 "foo-dep": "1.0.0"
28 }).scheduleValidate();
29
30 servePackages([
31 package("foo", "2.0.0", [dependency("foo-dep", ">1.0.0")]),
32 package("foo-dep", "2.0.0")
33 ]);
34
35 schedulePub(args: ['update', 'foo'],
36 output: const RegExp(@"Dependencies updated!$"));
37
38 packagesDir({
39 "foo": "2.0.0",
40 "foo-dep": "2.0.0"
41 }).scheduleValidate();
42
43 run();
44 });
45
46 test("updates a locked package's dependers in order to get it to max "
47 "version", () {
48 servePackages([
49 package("foo", "1.0.0", [dependency("bar", "<2.0.0")]),
50 package("bar", "1.0.0")
51 ]);
52
53 appDir([dependency("foo"), dependency("bar")]).scheduleCreate();
54
55 schedulePub(args: ['install'],
56 output: const RegExp(@"Dependencies installed!$"));
57
58 packagesDir({
59 "foo": "1.0.0",
60 "bar": "1.0.0"
61 }).scheduleValidate();
62
63 servePackages([
64 package("foo", "2.0.0", [dependency("bar", "<3.0.0")]),
65 package("bar", "2.0.0")
66 ]);
67
68 schedulePub(args: ['update', 'bar'],
69 output: const RegExp(@"Dependencies updated!$"));
70
71 packagesDir({
72 "foo": "2.0.0",
73 "bar": "2.0.0"
74 }).scheduleValidate();
75
76 run();
77 });
78 }
OLDNEW
« no previous file with comments | « utils/tests/pub/pub_update_git_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698