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

Side by Side Diff: sdk/lib/_internal/pub/test/install/broken_symlink_test.dart

Issue 19592015: Get rid of hokey dependencyMapList stuff. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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) 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 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:path/path.dart' as path; 9 import 'package:path/path.dart' as path;
10 10
11 import '../descriptor.dart' as d; 11 import '../descriptor.dart' as d;
12 import '../test_pub.dart'; 12 import '../test_pub.dart';
13 13
14 main() { 14 main() {
15 initConfig(); 15 initConfig();
16 integration('replaces a broken "packages" symlink', () { 16 integration('replaces a broken "packages" symlink', () {
17 d.dir(appPath, [ 17 d.dir(appPath, [
18 d.appPubspec([]), 18 d.appPubspec(),
19 d.libDir('foo'), 19 d.libDir('foo'),
20 d.dir("bin") 20 d.dir("bin")
21 ]).create(); 21 ]).create();
22 22
23 // Create a broken "packages" symlink in "bin". 23 // Create a broken "packages" symlink in "bin".
24 scheduleSymlink("nonexistent", path.join(appPath, "packages")); 24 scheduleSymlink("nonexistent", path.join(appPath, "packages"));
25 25
26 pubInstall(); 26 pubInstall();
27 27
28 d.dir(appPath, [ 28 d.dir(appPath, [
29 d.dir("bin", [ 29 d.dir("bin", [
30 d.dir("packages", [ 30 d.dir("packages", [
31 d.dir("myapp", [ 31 d.dir("myapp", [
32 d.file('foo.dart', 'main() => "foo";') 32 d.file('foo.dart', 'main() => "foo";')
33 ]) 33 ])
34 ]) 34 ])
35 ]) 35 ])
36 ]).validate(); 36 ]).validate();
37 }); 37 });
38 38
39 integration('replaces a broken secondary "packages" symlink', () { 39 integration('replaces a broken secondary "packages" symlink', () {
40 d.dir(appPath, [ 40 d.dir(appPath, [
41 d.appPubspec([]), 41 d.appPubspec(),
42 d.libDir('foo'), 42 d.libDir('foo'),
43 d.dir("bin") 43 d.dir("bin")
44 ]).create(); 44 ]).create();
45 45
46 // Create a broken "packages" symlink in "bin". 46 // Create a broken "packages" symlink in "bin".
47 scheduleSymlink("nonexistent", path.join(appPath, "bin", "packages")); 47 scheduleSymlink("nonexistent", path.join(appPath, "bin", "packages"));
48 48
49 pubInstall(); 49 pubInstall();
50 50
51 d.dir(appPath, [ 51 d.dir(appPath, [
52 d.dir("bin", [ 52 d.dir("bin", [
53 d.dir("packages", [ 53 d.dir("packages", [
54 d.dir("myapp", [ 54 d.dir("myapp", [
55 d.file('foo.dart', 'main() => "foo";') 55 d.file('foo.dart', 'main() => "foo";')
56 ]) 56 ])
57 ]) 57 ])
58 ]) 58 ])
59 ]).validate(); 59 ]).validate();
60 }); 60 });
61 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698