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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/snapshot/upgrades_snapshot_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 '../descriptor.dart' as d;
5 import '../test_pub.dart';
6 main() {
7 initConfig();
8 integration("upgrades a snapshot when its package is upgraded", () {
9 servePackages((builder) {
10 builder.serve(
11 "foo",
12 "1.2.3",
13 contents: [
14 d.dir("bin", [d.file("hello.dart", "void main() => print('hello!') ;")])]);
15 });
16 d.appDir({
17 "foo": "any"
18 }).create();
19 pubGet(output: contains("Precompiled foo:hello."));
20 d.dir(
21 p.join(appPath, '.pub', 'bin', 'foo'),
22 [d.matcherFile('hello.dart.snapshot', contains('hello!'))]).validate();
23 servePackages((builder) {
24 builder.serve(
25 "foo",
26 "1.2.4",
27 contents: [
28 d.dir("bin", [d.file("hello.dart", "void main() => print('hello 2! ');")])]);
29 });
30 pubUpgrade(output: contains("Precompiled foo:hello."));
31 d.dir(
32 p.join(appPath, '.pub', 'bin', 'foo'),
33 [d.matcherFile('hello.dart.snapshot', contains('hello 2!'))]).validate() ;
34 var process = pubRun(args: ['foo:hello']);
35 process.stdout.expect("hello 2!");
36 process.shouldExit();
37 });
38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698