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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/get/broken_symlink_test.dart

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

Powered by Google App Engine
This is Rietveld 408576698