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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/snapshot/recompiles_if_the_sdk_is_out_of_date_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 library pub_tests;
2 import 'package:path/path.dart' as p;
3 import 'package:scheduled_test/scheduled_test.dart';
4 import 'package:scheduled_test/scheduled_stream.dart';
5 import '../descriptor.dart' as d;
6 import '../test_pub.dart';
7 main() {
8 initConfig();
9 integration(
10 "creates a snapshot for an immediate dependency's executables",
11 () {
12 servePackages((builder) {
13 builder.serve(
14 "foo",
15 "5.6.7",
16 contents: [
17 d.dir("bin", [d.file("hello.dart", "void main() => print('hello!') ;")])]);
18 });
19 d.appDir({
20 "foo": "5.6.7"
21 }).create();
22 pubGet(output: contains("Precompiled foo:hello."));
23 d.dir(
24 p.join(appPath, '.pub', 'bin'),
25 [d.dir('foo', [d.outOfDateSnapshot('hello.dart.snapshot')])]).create();
26 var process = pubRun(args: ['foo:hello']);
27 process.stdout.expect("Precompiling executables...");
28 process.stdout.expect(consumeThrough("hello!"));
29 process.shouldExit();
30 d.dir(
31 p.join(appPath, '.pub', 'bin'),
32 [
33 d.file('sdk-version', '0.1.2+3'),
34 d.dir(
35 'foo',
36 [d.matcherFile('hello.dart.snapshot', contains('hello!'))])]).cr eate();
37 });
38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698