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

Unified Diff: utils/tests/pub/install/path/absolute_path_test.dart

Issue 11931040: adds file path source to pub (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase to newest as of 5 min ago Created 7 years, 11 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/pub/validator/dependency.dart ('k') | utils/tests/pub/install/path/path_does_not_exist_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/install/path/absolute_path_test.dart
diff --git a/utils/tests/pub/install/git/different_repo_name_test.dart b/utils/tests/pub/install/path/absolute_path_test.dart
similarity index 52%
copy from utils/tests/pub/install/git/different_repo_name_test.dart
copy to utils/tests/pub/install/path/absolute_path_test.dart
index 8f5657c7dec6e8b58ad53c625fa4b9301c2da4a3..fdffb4258a586230b8fedd9e73563df8ffbec1a2 100644
--- a/utils/tests/pub/install/git/different_repo_name_test.dart
+++ b/utils/tests/pub/install/path/absolute_path_test.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -9,31 +9,31 @@ import 'dart:io';
import '../../test_pub.dart';
main() {
- integration('doesn\'t require the repository name to match the name in the '
- 'pubspec', () {
- ensureGit();
- git('foo.git', [
- libDir('weirdname'),
- libPubspec('weirdname', '1.0.0')
+ integration('path dependency when path is absolute', () {
+
+ dir('foo', [
+ libDir('foo'),
+ libPubspec('foo', '0.0.1')
]).scheduleCreate();
dir(appPath, [
pubspec({
"name": "myapp",
"dependencies": {
- "weirdname": {"git": "../foo.git"}
+ "foo": {"path": "../foo"} //TODO(Sam): find a way to get absolute path
}
})
]).scheduleCreate();
-
+
schedulePub(args: ['install'],
- output: new RegExp(r"Dependencies installed!$"));
+ output: new RegExp("Dependencies installed!\$"));
dir(packagesPath, [
- dir('weirdname', [
- file('weirdname.dart', 'main() => "weirdname";')
+ dir('foo', [
+ file('foo.dart', 'main() => "foo";')
])
]).scheduleValidate();
+
});
}
« no previous file with comments | « utils/pub/validator/dependency.dart ('k') | utils/tests/pub/install/path/path_does_not_exist_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698