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

Unified Diff: utils/tests/pub/pub_update_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_update_git_test.dart
diff --git a/utils/tests/pub/pub_update_git_test.dart b/utils/tests/pub/pub_update_git_test.dart
index ab39561be71b514afebbe1b1d0a17f90f2c05ba4..681eac63cb23d21eada9ffd18a83f002c2187421 100644
--- a/utils/tests/pub/pub_update_git_test.dart
+++ b/utils/tests/pub/pub_update_git_test.dart
@@ -14,11 +14,11 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";')
+ libDir('foo')
]).scheduleCreate();
git('bar.git', [
- file('bar.dart', 'main() => "bar";')
+ libDir('bar')
]).scheduleCreate();
appDir([{"git": "../foo.git"}, {"git": "../bar.git"}]).scheduleCreate();
@@ -36,11 +36,11 @@ main() {
]).scheduleValidate();
git('foo.git', [
- file('foo.dart', 'main() => "foo 2";')
+ libDir('foo', 'foo 2')
]).scheduleCommit();
git('bar.git', [
- file('bar.dart', 'main() => "bar 2";')
+ libDir('bar', 'bar 2')
]).scheduleCommit();
schedulePub(args: ['update'],
@@ -63,11 +63,11 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";')
+ libDir('foo')
]).scheduleCreate();
git('bar.git', [
- file('bar.dart', 'main() => "bar";')
+ libDir('bar')
]).scheduleCreate();
appDir([{"git": "../foo.git"}, {"git": "../bar.git"}]).scheduleCreate();
@@ -85,11 +85,11 @@ main() {
]).scheduleValidate();
git('foo.git', [
- file('foo.dart', 'main() => "foo 2";')
+ libDir('foo', 'foo 2')
]).scheduleCommit();
git('bar.git', [
- file('bar.dart', 'main() => "bar 2";')
+ libDir('bar', 'bar 2')
]).scheduleCommit();
schedulePub(args: ['update', 'foo'],
@@ -112,12 +112,12 @@ main() {
ensureGit();
git('foo.git', [
- file('foo.dart', 'main() => "foo";'),
+ libDir('foo'),
libPubspec("foo", "1.0.0", [{"git": "../foo-dep.git"}])
]).scheduleCreate();
git('foo-dep.git', [
- file('foo-dep.dart', 'main() => "foo-dep";'),
+ libDir('foo-dep')
]).scheduleCreate();
appDir([{"git": "../foo.git"}]).scheduleCreate();
@@ -127,8 +127,7 @@ main() {
dir(packagesPath, [
dir('foo', [
- file('foo.dart', 'main() => "foo";'),
- libPubspec("foo", "1.0.0", [{"git": "../foo-dep.git"}])
+ file('foo.dart', 'main() => "foo";')
]),
dir('foo-dep', [
file('foo-dep.dart', 'main() => "foo-dep";')
@@ -136,12 +135,12 @@ main() {
]).scheduleValidate();
git('foo.git', [
- file('foo.dart', 'main() => "foo 2";'),
+ libDir('foo', 'foo 2'),
libPubspec("foo", "1.0.0", [{"git": "../foo-dep.git"}])
]).scheduleCreate();
git('foo-dep.git', [
- file('foo-dep.dart', 'main() => "foo-dep 2";')
+ libDir('foo-dep', 'foo-dep 2')
]).scheduleCommit();
schedulePub(args: ['update', 'foo'],
@@ -149,8 +148,7 @@ main() {
dir(packagesPath, [
dir('foo', [
- file('foo.dart', 'main() => "foo 2";'),
- libPubspec("foo", "1.0.0", [{"git": "../foo-dep.git"}])
+ file('foo.dart', 'main() => "foo 2";')
]),
dir('foo-dep', [
file('foo-dep.dart', 'main() => "foo-dep";')

Powered by Google App Engine
This is Rietveld 408576698