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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/global/activate/snapshots_hosted_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 hosted package', () {
7 servePackages((builder) {
8 builder.serve(
9 "foo",
10 "1.0.0",
11 contents: [
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("subdir", [d.file("sub.dart", "void main() => print( 'sub!');")])])]);
19 });
20 schedulePub(
21 args: ["global", "activate", "foo"],
22 output: allOf(
23 [contains('Precompiled foo:hello.'), contains("Precompiled foo:goodb ye.")]));
24 d.dir(
25 cachePath,
26 [
27 d.dir(
28 'global_packages',
29 [
30 d.dir(
31 'foo',
32 [
33 d.matcherFile('pubspec.lock', contains('1.0.0')),
34 d.dir(
35 'bin',
36 [
37 d.matcherFile('hello.dart.snapshot', contain s('hello!')),
38 d.matcherFile('goodbye.dart.snapshot', conta ins('goodbye!')),
39 d.nothing('shell.sh.snapshot'),
40 d.nothing('subdir')])])])]).validate();
41 });
42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698