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

Side by Side Diff: utils/tests/pub/install/path/relative_path_test.dart

Issue 12782005: Revert "Use scheduled_test for Pub tests." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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) 2013, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2013, 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 d.file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import '../../../../../pkg/pathos/lib/path.dart' as path; 5 import '../../../../../pkg/pathos/lib/path.dart' as path;
6 6
7 import '../../../../pub/exit_codes.dart' as exit_codes; 7 import '../../../../pub/exit_codes.dart' as exit_codes;
8 import '../../descriptor.dart' as d;
9 import '../../test_pub.dart'; 8 import '../../test_pub.dart';
10 9
11 main() { 10 main() {
12 initConfig(); 11 initConfig();
13 integration("can use relative path", () { 12 integration("can use relative path", () {
14 d.dir("foo", [ 13 dir("foo", [
15 d.libDir("foo"), 14 libDir("foo"),
16 d.libPubspec("foo", "0.0.1") 15 libPubspec("foo", "0.0.1")
17 ]).create(); 16 ]).scheduleCreate();
18 17
19 d.dir(appPath, [ 18 dir(appPath, [
20 d.pubspec({ 19 pubspec({
21 "name": "myapp", 20 "name": "myapp",
22 "dependencies": { 21 "dependencies": {
23 "foo": {"path": "../foo"} 22 "foo": {"path": "../foo"}
24 } 23 }
25 }) 24 })
26 ]).create(); 25 ]).scheduleCreate();
27 26
28 schedulePub(args: ["install"], 27 schedulePub(args: ["install"],
29 output: new RegExp(r"Dependencies installed!$")); 28 output: new RegExp(r"Dependencies installed!$"));
30 29
31 d.dir(packagesPath, [ 30 dir(packagesPath, [
32 d.dir("foo", [ 31 dir("foo", [
33 d.file("foo.dart", 'main() => "foo";') 32 file("foo.dart", 'main() => "foo";')
34 ]) 33 ])
35 ]).validate(); 34 ]).scheduleValidate();
36 }); 35 });
37 36
38 integration("path is relative to containing d.pubspec", () { 37 integration("path is relative to containing pubspec", () {
39 d.dir("relative", [ 38 dir("relative", [
40 d.dir("foo", [ 39 dir("foo", [
41 d.libDir("foo"), 40 libDir("foo"),
42 d.libPubspec("foo", "0.0.1", deps: [ 41 libPubspec("foo", "0.0.1", deps: [
43 {"path": "../bar"} 42 {"path": "../bar"}
44 ]) 43 ])
45 ]), 44 ]),
46 d.dir("bar", [ 45 dir("bar", [
47 d.libDir("bar"), 46 libDir("bar"),
48 d.libPubspec("bar", "0.0.1") 47 libPubspec("bar", "0.0.1")
49 ]) 48 ])
50 ]).create(); 49 ]).scheduleCreate();
51 50
52 d.dir(appPath, [ 51 dir(appPath, [
53 d.pubspec({ 52 pubspec({
54 "name": "myapp", 53 "name": "myapp",
55 "dependencies": { 54 "dependencies": {
56 "foo": {"path": "../relative/foo"} 55 "foo": {"path": "../relative/foo"}
57 } 56 }
58 }) 57 })
59 ]).create(); 58 ]).scheduleCreate();
60 59
61 schedulePub(args: ["install"], 60 schedulePub(args: ["install"],
62 output: new RegExp(r"Dependencies installed!$")); 61 output: new RegExp(r"Dependencies installed!$"));
63 62
64 d.dir(packagesPath, [ 63 dir(packagesPath, [
65 d.dir("foo", [ 64 dir("foo", [
66 d.file("foo.dart", 'main() => "foo";') 65 file("foo.dart", 'main() => "foo";')
67 ]), 66 ]),
68 d.dir("bar", [ 67 dir("bar", [
69 d.file("bar.dart", 'main() => "bar";') 68 file("bar.dart", 'main() => "bar";')
70 ]) 69 ])
71 ]).validate(); 70 ]).scheduleValidate();
72 }); 71 });
73 } 72 }
OLDNEW
« no previous file with comments | « utils/tests/pub/install/path/path_is_file_test.dart ('k') | utils/tests/pub/install/path/relative_symlink_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698