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

Unified Diff: utils/tests/pub/pub_install_git_test.dart

Issue 10916190: Support both new and old style package layouts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 3 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
Index: utils/tests/pub/pub_install_git_test.dart
diff --git a/utils/tests/pub/pub_install_git_test.dart b/utils/tests/pub/pub_install_git_test.dart
index 4df132ec2ac2fe25e7fa56777bc9a03f6c7cefdb..634ca93398cf8dbc973b58ff70beb29939793133 100644
--- a/utils/tests/pub/pub_install_git_test.dart
+++ b/utils/tests/pub/pub_install_git_test.dart
@@ -14,7 +14,7 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";')
+ libDir('foo')
]).scheduleCreate();
appDir([{"git": "../foo.git"}]).scheduleCreate();
@@ -42,12 +42,12 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";'),
+ libDir('foo'),
appPubspec([{"git": "../bar.git"}])
]).scheduleCreate();
git('bar.git', [
- file('bar.dart', 'main() => "bar";')
+ libDir('bar')
]).scheduleCreate();
appDir([{"git": "../foo.git"}]).scheduleCreate();
@@ -82,7 +82,7 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";')
+ libDir('foo')
]).scheduleCreate();
dir(appPath, [
@@ -109,7 +109,7 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";')
+ libDir('foo')
]).scheduleCreate();
appDir([{"git": "../foo.git"}]).scheduleCreate();
@@ -135,7 +135,7 @@ main() {
file('$appPath/pubspec.lock', '').scheduleDelete();
git('foo.git', [
- file('foo.dart', 'main() => "foo 2";')
+ libDir('foo', 'foo 2')
]).scheduleCommit();
schedulePub(args: ['install'],
@@ -164,7 +164,7 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";')
+ libDir('foo')
]).scheduleCreate();
appDir([{"git": "../foo.git"}]).scheduleCreate();
@@ -200,13 +200,13 @@ main() {
ensureGit();
var repo = git('foo.git', [
- file('foo.dart', 'main() => "foo 1";')
+ libDir('foo', 'foo 1')
]);
repo.scheduleCreate();
var commit = repo.revParse('HEAD');
git('foo.git', [
- file('foo.dart', 'main() => "foo 2";')
+ libDir('foo', 'foo 2')
]).scheduleCommit();
appDir([{"git": {"url": "../foo.git", "ref": commit}}]).scheduleCreate();
@@ -227,13 +227,13 @@ main() {
ensureGit();
var repo = git('foo.git', [
- file('foo.dart', 'main() => "foo 1";')
+ libDir('foo', 'foo 1')
]);
repo.scheduleCreate();
repo.scheduleGit(["branch", "old"]);
git('foo.git', [
- file('foo.dart', 'main() => "foo 2";')
+ libDir('foo', 'foo 2')
]).scheduleCommit();
appDir([{"git": {"url": "../foo.git", "ref": "old"}}]).scheduleCreate();
@@ -254,7 +254,7 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";')
+ libDir('foo')
]).scheduleCreate();
appDir([{"git": "../foo.git"}]).scheduleCreate();
@@ -273,7 +273,7 @@ main() {
dir(packagesPath).scheduleDelete();
git('foo.git', [
- file('foo.dart', 'main() => "foo 2";')
+ libDir('foo', 'foo 2')
]).scheduleCommit();
// This install shouldn't update the foo.git dependency due to the lockfile.
@@ -293,7 +293,7 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";')
+ libDir('foo')
]).scheduleCreate();
appDir([{"git": "../foo.git"}]).scheduleCreate();
@@ -308,7 +308,7 @@ main() {
]).scheduleValidate();
git('foo.git', [
- file('foo.dart', 'main() => "foo 1.0.0";'),
+ libDir('foo', 'foo 1.0.0'),
libPubspec("foo", "1.0.0")
]).scheduleCommit();
@@ -331,7 +331,7 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo 1.0.0";'),
+ libDir('foo', 'foo 1.0.0'),
libPubspec("foo", "1.0.0")
]).scheduleCreate();
@@ -347,7 +347,7 @@ main() {
]).scheduleValidate();
git('foo.git', [
- file('foo.dart', 'main() => "foo 1.0.1";'),
+ libDir('foo', 'foo 1.0.1'),
libPubspec("foo", "1.0.1")
]).scheduleCommit();
@@ -370,7 +370,7 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";')
+ libDir('foo')
]).scheduleCreate();
appDir([{"git": "../foo.git/"}]).scheduleCreate();

Powered by Google App Engine
This is Rietveld 408576698