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

Side by Side Diff: sdk/lib/_internal/pub/test/get/relative_symlink_test.dart

Issue 1165473002: Start pulling pub from its own repo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review changes Created 5 years, 6 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
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 '../descriptor.dart' as d;
10 import '../test_pub.dart';
11
12 main() {
13 // Pub uses NTFS junction points to create links in the packages directory.
14 // These (unlike the symlinks that are supported in Vista and later) do not
15 // support relative paths. So this test, by design, will not pass on Windows.
16 // So just skip it.
17 if (Platform.operatingSystem == "windows") return;
18
19 initConfig();
20 integration('uses a relative symlink for the self link', () {
21 d.dir(appPath, [
22 d.appPubspec(),
23 d.libDir('foo')
24 ]).create();
25
26 pubGet();
27
28 scheduleRename(appPath, "moved");
29
30 d.dir("moved", [
31 d.dir("packages", [
32 d.dir("myapp", [
33 d.file('foo.dart', 'main() => "foo";')
34 ])
35 ])
36 ]).validate();
37 });
38
39 integration('uses a relative symlink for secondary packages directory', () {
40 d.dir(appPath, [
41 d.appPubspec(),
42 d.libDir('foo'),
43 d.dir("bin")
44 ]).create();
45
46 pubGet();
47
48 scheduleRename(appPath, "moved");
49
50 d.dir("moved", [
51 d.dir("bin", [
52 d.dir("packages", [
53 d.dir("myapp", [
54 d.file('foo.dart', 'main() => "foo";')
55 ])
56 ])
57 ])
58 ]).validate();
59 });
60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698