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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/global/activate/snapshots_git_executables_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 '../../descriptor.dart' as d;
3 import '../../test_pub.dart';
4 main() {
5 initConfig();
6 integration('snapshots the executables for a Git repo', () {
7 ensureGit();
8 d.git(
9 'foo.git',
10 [
11 d.libPubspec("foo", "1.0.0"),
12 d.dir(
13 "bin",
14 [
15 d.file("hello.dart", "void main() => print('hello!');"),
16 d.file("goodbye.dart", "void main() => print('goodbye!');"),
17 d.file("shell.sh", "echo shell"),
18 d.dir(
19 "subdir",
20 [d.file("sub.dart", "void main() => print('sub!');")])]) ]).create();
21 schedulePub(
22 args: ["global", "activate", "-sgit", "../foo.git"],
23 output: allOf(
24 [contains('Precompiled foo:hello.'), contains("Precompiled foo:goodb ye.")]));
25 d.dir(
26 cachePath,
27 [
28 d.dir(
29 'global_packages',
30 [
31 d.dir(
32 'foo',
33 [
34 d.matcherFile('pubspec.lock', contains('1.0.0')),
35 d.dir(
36 'bin',
37 [
38 d.matcherFile('hello.dart.snapshot', contain s('hello!')),
39 d.matcherFile('goodbye.dart.snapshot', conta ins('goodbye!')),
40 d.nothing('shell.sh.snapshot'),
41 d.nothing('subdir')])])])]).validate();
42 });
43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698