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

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

Issue 12437022: Use scheduled_test for Pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: re-upload 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
« no previous file with comments | « utils/tests/pub/install/pub_install_test.dart ('k') | utils/tests/pub/oauth2_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 '../../../../pkg/unittest/lib/unittest.dart'; 9 import '../../../../pkg/scheduled_test/lib/scheduled_test.dart';
10
11 import '../descriptor.dart' as d;
10 import '../test_pub.dart'; 12 import '../test_pub.dart';
11 13
12 main() { 14 main() {
13 // Pub uses NTFS junction points to create links in the packages directory. 15 // 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 16 // 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. 17 // support relative paths. So this test, by design, will not pass on Windows.
16 // So just skip it. 18 // So just skip it.
17 if (Platform.operatingSystem == "windows") return; 19 if (Platform.operatingSystem == "windows") return;
18 20
19 initConfig(); 21 initConfig();
20 integration('uses a relative symlink for the self link', () { 22 integration('uses a relative symlink for the self link', () {
21 dir(appPath, [ 23 d.dir(appPath, [
22 appPubspec([]), 24 d.appPubspec([]),
23 libDir('foo') 25 d.libDir('foo')
24 ]).scheduleCreate(); 26 ]).create();
25 27
26 schedulePub(args: ['install'], 28 schedulePub(args: ['install'],
27 output: new RegExp(r"Dependencies installed!$")); 29 output: new RegExp(r"Dependencies installed!$"));
28 30
29 scheduleRename(appPath, "moved"); 31 scheduleRename(appPath, "moved");
30 32
31 dir("moved", [ 33 d.dir("moved", [
32 dir("packages", [ 34 d.dir("packages", [
33 dir("myapp", [ 35 d.dir("myapp", [
34 file('foo.dart', 'main() => "foo";') 36 d.file('foo.dart', 'main() => "foo";')
35 ]) 37 ])
36 ]) 38 ])
37 ]).scheduleValidate(); 39 ]).validate();
38 }); 40 });
39 41
40 integration('uses a relative symlink for secondary packages directory', () { 42 integration('uses a relative symlink for secondary packages directory', () {
41 dir(appPath, [ 43 d.dir(appPath, [
42 appPubspec([]), 44 d.appPubspec([]),
43 libDir('foo'), 45 d.libDir('foo'),
44 dir("bin") 46 d.dir("bin")
45 ]).scheduleCreate(); 47 ]).create();
46 48
47 schedulePub(args: ['install'], 49 schedulePub(args: ['install'],
48 output: new RegExp(r"Dependencies installed!$")); 50 output: new RegExp(r"Dependencies installed!$"));
49 51
50 scheduleRename(appPath, "moved"); 52 scheduleRename(appPath, "moved");
51 53
52 dir("moved", [ 54 d.dir("moved", [
53 dir("bin", [ 55 d.dir("bin", [
54 dir("packages", [ 56 d.dir("packages", [
55 dir("myapp", [ 57 d.dir("myapp", [
56 file('foo.dart', 'main() => "foo";') 58 d.file('foo.dart', 'main() => "foo";')
57 ]) 59 ])
58 ]) 60 ])
59 ]) 61 ])
60 ]).scheduleValidate(); 62 ]).validate();
61 }); 63 });
62 } 64 }
OLDNEW
« no previous file with comments | « utils/tests/pub/install/pub_install_test.dart ('k') | utils/tests/pub/oauth2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698