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

Unified Diff: utils/tests/pub/install/pub_install_test.dart

Issue 13132002: Version 0.4.3.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/tests/pub/install/hosted/stay_locked_test.dart ('k') | utils/tests/pub/io_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/install/pub_install_test.dart
===================================================================
--- utils/tests/pub/install/pub_install_test.dart (revision 20601)
+++ utils/tests/pub/install/pub_install_test.dart (working copy)
@@ -6,8 +6,10 @@
import 'dart:io';
+import '../../../../pkg/pathos/lib/path.dart' as path;
import '../../../../pkg/scheduled_test/lib/scheduled_test.dart';
+import '../../../pub/io.dart';
import '../descriptor.dart' as d;
import '../test_pub.dart';
@@ -114,6 +116,29 @@
]).validate();
});
+ integration('overwrites a broken packages directory symlink', () {
+ d.dir(appPath, [
+ d.appPubspec([]),
+ d.dir('packages'),
+ d.libDir('myapp'),
+ d.dir('bin')
+ ]).create();
+
+ scheduleSymlink(
+ path.join(appPath, 'packages'),
+ path.join(appPath, 'bin', 'packages'));
+
+ schedule(() => deleteEntry(path.join(sandboxDir, appPath, 'packages')));
+
+ schedulePub(args: ['install'],
+ output: new RegExp(r"Dependencies installed!$"));
+
+ d.dir(packagesPath, [
+ d.nothing('foo'),
+ d.dir('myapp', [d.file('myapp.dart', 'main() => "myapp";')])
+ ]).validate();
+ });
+
group('creates a packages directory in', () {
integration('"test/" and its subdirectories', () {
d.dir(appPath, [
« no previous file with comments | « utils/tests/pub/install/hosted/stay_locked_test.dart ('k') | utils/tests/pub/io_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698