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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/global/activate/installs_dependencies_for_path_test.dart

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 import 'package:scheduled_test/scheduled_test.dart';
2 import 'package:scheduled_test/scheduled_stream.dart';
3 import '../../descriptor.dart' as d;
4 import '../../test_pub.dart';
5 main() {
6 initConfig();
7 integration('activating a path package installs dependencies', () {
8 servePackages((builder) {
9 builder.serve("bar", "1.0.0", deps: {
10 "baz": "any"
11 });
12 builder.serve("baz", "2.0.0");
13 });
14 d.dir("foo", [d.libPubspec("foo", "0.0.0", deps: {
15 "bar": "any"
16 }),
17 d.dir("bin", [d.file("foo.dart", "main() => print('ok');")])]).create( );
18 var pub = startPub(args: ["global", "activate", "-spath", "../foo"]);
19 pub.stdout.expect(consumeThrough("Resolving dependencies..."));
20 pub.stdout.expect(consumeThrough("Downloading bar 1.0.0..."));
21 pub.stdout.expect(consumeThrough("Downloading baz 2.0.0..."));
22 pub.stdout.expect(
23 consumeThrough(startsWith("Activated foo 0.0.0 at path")));
24 pub.shouldExit();
25 d.dir(
26 "foo",
27 [
28 d.matcherFile(
29 "pubspec.lock",
30 allOf(
31 [
32 contains("bar"),
33 contains("1.0.0"),
34 contains("baz"),
35 contains("2.0.0")]))]).validate();
36 });
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698