Index: sdk/lib/_internal/pub_generated/test/deps_test.dart |
diff --git a/sdk/lib/_internal/pub/test/deps_test.dart b/sdk/lib/_internal/pub_generated/test/deps_test.dart |
similarity index 77% |
copy from sdk/lib/_internal/pub/test/deps_test.dart |
copy to sdk/lib/_internal/pub_generated/test/deps_test.dart |
index 7c5200640c57a7901973154608ccf866183b3092..06fddb6bf02acc6d8277eab77d765b8ea7a98e19 100644 |
--- a/sdk/lib/_internal/pub/test/deps_test.dart |
+++ b/sdk/lib/_internal/pub_generated/test/deps_test.dart |
@@ -1,44 +1,45 @@ |
-// 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. |
- |
import 'package:scheduled_test/scheduled_test.dart'; |
- |
import 'descriptor.dart' as d; |
import 'test_pub.dart'; |
- |
main() { |
initConfig(); |
- |
setUp(() { |
servePackages((builder) { |
builder.serve("normal", "1.2.3", deps: { |
"transitive": "any", |
"circular_a": "any" |
}); |
- builder.serve("transitive", "1.2.3", deps: {"shared": "any"}); |
- builder.serve("shared", "1.2.3", deps: {"other": "any"}); |
- builder.serve("unittest", "1.2.3", deps: {"shared": "any"}); |
+ builder.serve("transitive", "1.2.3", deps: { |
+ "shared": "any" |
+ }); |
+ builder.serve("shared", "1.2.3", deps: { |
+ "other": "any" |
+ }); |
+ builder.serve("unittest", "1.2.3", deps: { |
+ "shared": "any" |
+ }); |
builder.serve("other", "1.0.0"); |
builder.serve("overridden", "1.0.0"); |
builder.serve("overridden", "2.0.0"); |
builder.serve("override_only", "1.2.3"); |
- builder.serve("circular_a", "1.2.3", deps: {"circular_b": "any"}); |
- builder.serve("circular_b", "1.2.3", deps: {"circular_a": "any"}); |
+ builder.serve("circular_a", "1.2.3", deps: { |
+ "circular_b": "any" |
+ }); |
+ builder.serve("circular_b", "1.2.3", deps: { |
+ "circular_a": "any" |
+ }); |
}); |
- |
- d.dir("from_path", [ |
- d.libDir("from_path"), |
- d.libPubspec("from_path", "1.2.3") |
- ]).create(); |
- |
- d.dir(appPath, [ |
- d.pubspec({ |
+ d.dir( |
+ "from_path", |
+ [d.libDir("from_path"), d.libPubspec("from_path", "1.2.3")]).create(); |
+ d.dir(appPath, [d.pubspec({ |
"name": "myapp", |
"dependencies": { |
"normal": "any", |
"overridden": "1.0.0", |
- "from_path": {"path": "../from_path"} |
+ "from_path": { |
+ "path": "../from_path" |
+ } |
}, |
"dev_dependencies": { |
"unittest": "any" |
@@ -47,10 +48,8 @@ main() { |
"overridden": "2.0.0", |
"override_only": "any" |
} |
- }) |
- ]).create(); |
+ })]).create(); |
}); |
- |
integration("lists dependencies in compact form", () { |
pubGet(); |
schedulePub(args: ['deps', '-s', 'compact'], output: ''' |
@@ -76,7 +75,6 @@ main() { |
- transitive 1.2.3 [shared] |
'''); |
}); |
- |
integration("lists dependencies in list form", () { |
pubGet(); |
schedulePub(args: ['deps', '--style', 'list'], output: ''' |
@@ -109,7 +107,6 @@ main() { |
- shared any |
'''); |
}); |
- |
integration("lists dependencies in tree form", () { |
pubGet(); |
schedulePub(args: ['deps'], output: ''' |
@@ -128,4 +125,4 @@ main() { |
'-- other 1.0.0 |
'''); |
}); |
-} |
+} |