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/dart2js/reports_dart_parse_errors_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:path/path.dart' as p;
2 import 'package:scheduled_test/scheduled_test.dart';
3 import 'package:scheduled_test/scheduled_stream.dart';
4 import '../../lib/src/exit_codes.dart' as exit_codes;
5 import '../descriptor.dart' as d;
6 import '../test_pub.dart';
7 main() {
8 initConfig();
9 integration("reports Dart parse errors", () {
10 currentSchedule.timeout *= 3;
11 d.dir(
12 appPath,
13 [
14 d.appPubspec(),
15 d.dir(
16 'web',
17 [
18 d.file('file.txt', 'contents'),
19 d.file('file.dart', 'void void;'),
20 d.dir('subdir', [d.file('subfile.dart', 'void void;')])])]). create();
21 var pub = startPub(args: ["build"]);
22 pub.stdout.expect(startsWith("Loading source assets..."));
23 pub.stdout.expect(startsWith("Building myapp..."));
24 var consumeFile = consumeThrough(
25 inOrder(
26 ["[Error from Dart2JS]:", startsWith(p.join("web", "file.dart") + ": ")]));
27 var consumeSubfile = consumeThrough(
28 inOrder(
29 [
30 "[Error from Dart2JS]:",
31 startsWith(p.join("web", "subdir", "subfile.dart") + ":")]));
32 pub.stderr.expect(
33 either(
34 inOrder([consumeFile, consumeSubfile]),
35 inOrder([consumeSubfile, consumeFile])));
36 pub.shouldExit(exit_codes.DATA);
37 d.dir(appPath, [d.dir('build', [d.nothing('web')])]).validate();
38 });
39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698