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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/snapshot/prints_errors_for_broken_snapshots_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("prints errors for broken snapshot compilation", () {
9 servePackages((builder) {
10 builder.serve(
11 "foo",
12 "1.2.3",
13 contents: [
14 d.dir(
15 "bin",
16 [
17 d.file("hello.dart", "void main() { no closing brace"),
18 d.file("goodbye.dart", "void main() { no closing brace")]) ]);
19 builder.serve(
20 "bar",
21 "1.2.3",
22 contents: [
23 d.dir(
24 "bin",
25 [
26 d.file("hello.dart", "void main() { no closing brace"),
27 d.file("goodbye.dart", "void main() { no closing brace")]) ]);
28 });
29 d.appDir({
30 "foo": "1.2.3",
31 "bar": "1.2.3"
32 }).create();
33 pubGet(
34 error: allOf(
35 [
36 contains("Failed to precompile foo:hello"),
37 contains("Failed to precompile foo:goodbye"),
38 contains("Failed to precompile bar:hello"),
39 contains("Failed to precompile bar:goodbye")]),
40 exitCode: 0);
41 d.dir(
42 p.join(appPath, '.pub', 'bin'),
43 [
44 d.file('sdk-version', '0.1.2+3\n'),
45 d.dir(
46 'foo',
47 [d.nothing('hello.dart.snapshot'), d.nothing('goodbye.dart.snaps hot')]),
48 d.dir(
49 'bar',
50 [
51 d.nothing('hello.dart.snapshot'),
52 d.nothing('goodbye.dart.snapshot')])]).validate();
53 });
54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698