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

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

Issue 12208138: Take Sam Elkhateeb's path for "path" dependencies and clean it up some. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 10 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/pub/validator/dependency.dart ('k') | utils/tests/pub/install/path/no_pubspec_test.dart » ('j') | 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) 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
3 // BSD-style license that can be found in the LICENSE file.
4
5 import '../../../../../pkg/path/lib/path.dart' as path;
6
7 import '../../test_pub.dart';
8
9 main() {
10 initConfig();
11 integration('path dependency with absolute path', () {
12 dir('foo', [
13 libDir('foo'),
14 libPubspec('foo', '0.0.1')
15 ]).scheduleCreate();
16
17 dir(appPath, [
18 pubspec({
19 "name": "myapp",
20 "dependencies": {
21 "foo": {"path": path.join(sandboxDir, "foo")}
22 }
23 })
24 ]).scheduleCreate();
25
26 schedulePub(args: ["install"],
27 output: new RegExp(r"Dependencies installed!$"));
28
29 dir(packagesPath, [
30 dir("foo", [
31 file("foo.dart", 'main() => "foo";')
32 ])
33 ]).scheduleValidate();
34
35 // Move the packages directory and ensure the symlink still works. That
36 // will validate that we actually created an absolute symlink.
37 dir("moved").scheduleCreate();
38 scheduleRename(packagesPath, "moved/packages");
39
40 dir("moved/packages", [
41 dir("foo", [
42 file("foo.dart", 'main() => "foo";')
43 ])
44 ]).scheduleValidate();
45 });
46 }
OLDNEW
« no previous file with comments | « utils/pub/validator/dependency.dart ('k') | utils/tests/pub/install/path/no_pubspec_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698