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

Side by Side Diff: utils/tests/pub/install/broken_symlink_test.dart

Issue 14297021: Move pub into sdk/lib/_internal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Disallow package: imports of pub. Created 7 years, 8 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
(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 'package:pathos/path.dart' as path;
10
11 import '../descriptor.dart' as d;
12 import '../test_pub.dart';
13
14 main() {
15 initConfig();
16 integration('replaces a broken "packages" symlink', () {
17 d.dir(appPath, [
18 d.appPubspec([]),
19 d.libDir('foo'),
20 d.dir("bin")
21 ]).create();
22
23 // Create a broken "packages" symlink in "bin".
24 scheduleSymlink("nonexistent", path.join(appPath, "packages"));
25
26 schedulePub(args: ['install'],
27 output: new RegExp(r"Dependencies installed!$"));
28
29 d.dir(appPath, [
30 d.dir("bin", [
31 d.dir("packages", [
32 d.dir("myapp", [
33 d.file('foo.dart', 'main() => "foo";')
34 ])
35 ])
36 ])
37 ]).validate();
38 });
39
40 integration('replaces a broken secondary "packages" symlink', () {
41 d.dir(appPath, [
42 d.appPubspec([]),
43 d.libDir('foo'),
44 d.dir("bin")
45 ]).create();
46
47 // Create a broken "packages" symlink in "bin".
48 scheduleSymlink("nonexistent", path.join(appPath, "bin", "packages"));
49
50 schedulePub(args: ['install'],
51 output: new RegExp(r"Dependencies installed!$"));
52
53 d.dir(appPath, [
54 d.dir("bin", [
55 d.dir("packages", [
56 d.dir("myapp", [
57 d.file('foo.dart', 'main() => "foo";')
58 ])
59 ])
60 ])
61 ]).validate();
62 });
63 }
OLDNEW
« no previous file with comments | « utils/tests/pub/error_group_test.dart ('k') | utils/tests/pub/install/git/check_out_and_update_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698