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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/dart2js/supports_configuration_with_build_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 'dart:convert';
2 import 'package:scheduled_test/scheduled_test.dart';
3 import '../descriptor.dart' as d;
4 import '../test_pub.dart';
5 main() {
6 initConfig();
7 integration(
8 "compiles dart.js and interop.js next to entrypoints when "
9 "dartjs is explicitly configured",
10 () {
11 currentSchedule.timeout *= 3;
12 serve([d.dir('api', [d.dir('packages', [d.file('browser', JSON.encode({
13 'versions': [packageVersionApiMap(packageMap('browser', '1.0.0'))]
14 })),
15 d.dir(
16 'browser',
17 [
18 d.dir(
19 'versions',
20 [
21 d.file(
22 '1.0.0',
23 JSON.encode(
24 packageVersionApiMap(packageMap('browser', '1.0.0'), full: true)))])])])]),
25 d.dir(
26 'packages',
27 [
28 d.dir(
29 'browser',
30 [
31 d.dir(
32 'versions',
33 [
34 d.tar(
35 '1.0.0.tar.gz',
36 [
37 d.file('pubspec.yaml', yaml(packag eMap("browser", "1.0.0"))),
38 d.dir(
39 'lib',
40 [
41 d.file('dart.js', 'content s of dart.js'),
42 d.file('interop.js', 'cont ents of interop.js')])])])])])]);
43 d.dir(appPath, [d.pubspec({
44 "name": "myapp",
45 "dependencies": {
46 "browser": "1.0.0"
47 },
48 "transformers": [{
49 "\$dart2js": {
50 "minify": true
51 }
52 }]
53 }),
54 d.dir(
55 'web',
56 [d.file('file.dart', 'void main() => print("hello");')])]).create( );
57 pubGet();
58 schedulePub(
59 args: ["build"],
60 output: new RegExp(r'Built 4 files to "build".'),
61 exitCode: 0);
62 d.dir(
63 appPath,
64 [
65 d.dir(
66 'build',
67 [
68 d.dir(
69 'web',
70 [
71 d.matcherFile('file.dart.js', isMinifiedDart2JSOutpu t),
72 d.matcherFile('file.dart.precompiled.js', isNot(isEm pty)),
73 d.dir(
74 'packages',
75 [
76 d.dir(
77 'browser',
78 [
79 d.file('dart.js', 'contents of dart. js'),
80 d.file('interop.js', 'contents of in terop.js')])])])])]).validate();
81 });
82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698