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

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

Issue 12782005: Revert "Use scheduled_test for Pub tests." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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) 2013, the Dart project authors. Please see the AUTHORS d.file 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 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 d.file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:io'; 5 import 'dart:io';
6 6
7 import '../../../../../pkg/pathos/lib/path.dart' as path; 7 import '../../../../../pkg/pathos/lib/path.dart' as path;
8 8
9 import '../../../../pub/exit_codes.dart' as exit_codes; 9 import '../../../../pub/exit_codes.dart' as exit_codes;
10 import '../../descriptor.dart' as d;
11 import '../../test_pub.dart'; 10 import '../../test_pub.dart';
12 11
13 main() { 12 main() {
14 // Pub uses NTFS junction points to create links in the packages directory. 13 // Pub uses NTFS junction points to create links in the packages directory.
15 // These (unlike the symlinks that are supported in Vista and later) do not 14 // These (unlike the symlinks that are supported in Vista and later) do not
16 // support relative paths. So this test, by design, will not pass on Windows. 15 // support relative paths. So this test, by design, will not pass on Windows.
17 // So just skip it. 16 // So just skip it.
18 if (Platform.operatingSystem == "windows") return; 17 if (Platform.operatingSystem == "windows") return;
19 18
20 initConfig(); 19 initConfig();
21 integration("generates a symlink with a relative path if the dependency " 20 integration("generates a symlink with a relative path if the dependency "
22 "path was relative", () { 21 "path was relative", () {
23 d.dir("foo", [ 22 dir("foo", [
24 d.libDir("foo"), 23 libDir("foo"),
25 d.libPubspec("foo", "0.0.1") 24 libPubspec("foo", "0.0.1")
26 ]).create(); 25 ]).scheduleCreate();
27 26
28 d.dir(appPath, [ 27 dir(appPath, [
29 d.pubspec({ 28 pubspec({
30 "name": "myapp", 29 "name": "myapp",
31 "dependencies": { 30 "dependencies": {
32 "foo": {"path": "../foo"} 31 "foo": {"path": "../foo"}
33 } 32 }
34 }) 33 })
35 ]).create(); 34 ]).scheduleCreate();
36 35
37 schedulePub(args: ["install"], 36 schedulePub(args: ["install"],
38 output: new RegExp(r"Dependencies installed!$")); 37 output: new RegExp(r"Dependencies installed!$"));
39 38
40 d.dir("moved").create(); 39 dir("moved").scheduleCreate();
41 40
42 // Move the app and package. Since they are still next to each other, it 41 // Move the app and package. Since they are still next to each other, it
43 // should still be found. 42 // should still be found.
44 scheduleRename("foo", path.join("moved", "foo")); 43 scheduleRename("foo", path.join("moved", "foo"));
45 scheduleRename(appPath, path.join("moved", appPath)); 44 scheduleRename(appPath, path.join("moved", appPath));
46 45
47 d.dir("moved", [ 46 dir("moved", [
48 d.dir(packagesPath, [ 47 dir(packagesPath, [
49 d.dir("foo", [ 48 dir("foo", [
50 d.file("foo.dart", 'main() => "foo";') 49 file("foo.dart", 'main() => "foo";')
51 ]) 50 ])
52 ]) 51 ])
53 ]).validate(); 52 ]).scheduleValidate();
54 }); 53 });
55 } 54 }
OLDNEW
« no previous file with comments | « utils/tests/pub/install/path/relative_path_test.dart ('k') | utils/tests/pub/install/path/shared_dependency_symlink_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698