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

Side by Side Diff: test/get/broken_symlink_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 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
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();
14 integration('replaces a broken "packages" symlink', () { 13 integration('replaces a broken "packages" symlink', () {
15 d.dir(appPath, [ 14 d.dir(appPath, [
16 d.appPubspec(), 15 d.appPubspec(),
17 d.libDir('foo'), 16 d.libDir('foo'),
18 d.dir("bin") 17 d.dir("bin")
19 ]).create(); 18 ]).create();
20 19
21 // Create a broken "packages" symlink in "bin". 20 // Create a broken "packages" symlink in "bin".
22 scheduleSymlink("nonexistent", path.join(appPath, "packages")); 21 scheduleSymlink("nonexistent", path.join(appPath, "packages"));
23 22
(...skipping 26 matching lines...) Expand all
50 d.dir("bin", [ 49 d.dir("bin", [
51 d.dir("packages", [ 50 d.dir("packages", [
52 d.dir("myapp", [ 51 d.dir("myapp", [
53 d.file('foo.dart', 'main() => "foo";') 52 d.file('foo.dart', 'main() => "foo";')
54 ]) 53 ])
55 ]) 54 ])
56 ]) 55 ])
57 ]).validate(); 56 ]).validate();
58 }); 57 });
59 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698